expose 使用 replication controller, service, deployment 或者 pod 并暴露它作为一个 新的 Kubernetes Service run 在集群中运行一个指定的镜像 set 为 objects 设置一个指定的特征 Basic Commands (Intermediate): explain 查看资源的文档 get 显示一个或更多 resou
Basic Commands (Beginner): create Create a resource from a file or from stdin. expose 使用 replication controller, service, deployment 或者 pod 并暴露它作为一个 新的 Kubernetes Service run 在集群中运行一个指定的镜像 set 为objects 设置一个指定的特征 Basic Commands (Intermediate): explain 查看资源...
This section contains the most basic commands for getting a workload running on your cluster. runwill start running 1 or more instances of a container image on your cluster. exposewill load balance traffic across the running instances, and can create a HA proxy for accessing the containers from...
Deploy Commands: rollout Manage the rollout of a resource scale Set a new size for a deployment, replica set, or replication controller autoscale Auto-scale a deployment, replica set, stateful set, or replication controller Cluster Management Commands: certificate Modify certificate resources. cluster-...
可参考:https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#port-forward 步骤: 在终端中运行以下命令: $ kubectl -n service-debug port-forward service/service-back 8080:8080 Forwarding from 127.0.0.1:8080 -> 8080 Forwarding from [::1]:8080 -> 8080 ...
or from stdin expose Take a replication controller, service, deployment or pod and expose it as a new Kubernetes service run 在集群上运行特定镜像 set 为对象设置指定特性Basic Commands (Intermediate): explain Get documentation for a resource get 显示一个或多个资源 edit ...
$ kubectl create -f nginx-deployment.yaml nginx部署的YAML配置文件的示例代码如下: apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2 kind: Deployment metadata: name: nginx spec: replicas: 10 selector: matchLabels: app: nginx ...
Basic Commands(Beginner): create Create a resource from afileor from stdin. expose 使用 replication controller, service, deployment 或者 pod 并暴露它作为一个新的Kubernetes Service run 在集群中运行一个指定的镜像set为 objects 设置一个指定的特征 ...
Ready-to-use commands and tips for kubectl 1、打印当前使用的API #kubectl 的主要作用就是与 ApiServer 进行交互, 而交互的过程, 我们可以通过下面的方式来打印,#这个命令尤其适合调试自己的api接口时使用.$kubectl get ns -v=9 👉点击领取 Go后端开发资...
Helpful commands for general use Below are some of the most helpful general use commands when working with Kubernetes. # Display Kubernetes API Server URL $ kubectl cluster-info # Dump all cluster information $ kubectl cluster-info dump