deprecated kubectl run command flag replicas for zh
Signed-off-by: Weiping Cai <weiping.cai@daocloud.io>
This commit is contained in:
parent
347d38361f
commit
cca324e4bd
|
@ -631,7 +631,7 @@ Let's say you were running version 1.7.9 of nginx:
|
|||
假设您正运行的是 1.7.9 版本的 nginx:
|
||||
|
||||
```shell
|
||||
kubectl run my-nginx --image=nginx:1.7.9 --replicas=3
|
||||
kubectl create deployment my-nginx --image=nginx:1.7.9
|
||||
```
|
||||
```shell
|
||||
deployment.apps/my-nginx created
|
||||
|
|
|
@ -729,7 +729,7 @@ kubectl create quota test --hard=count/deployments.extensions=2,count/replicaset
|
|||
```
|
||||
|
||||
```shell
|
||||
kubectl run nginx --image=nginx --replicas=2 --namespace=myspace
|
||||
kubectl create deployment nginx --image=nginx --namespace=myspace
|
||||
```
|
||||
|
||||
```shell
|
||||
|
|
|
@ -57,7 +57,7 @@ kubectl run --image=nginx nginx-app --port=80 --env="DOMAIN=cluster"
|
|||
-->
|
||||
```shell
|
||||
# 启动运行 nginx 的 Pod
|
||||
kubectl run --image=nginx nginx-app --port=80 --env="DOMAIN=cluster"
|
||||
kubectl create deployment --image=nginx nginx-app --port=80 --env="DOMAIN=cluster"
|
||||
```
|
||||
```
|
||||
deployment "nginx-app" created
|
||||
|
|
|
@ -36,7 +36,7 @@ content_template: templates/task
|
|||
为了查看 Kubernetes 网络策略是怎样工作的,可以从创建一个`nginx` deployment 并且通过服务将其暴露开始
|
||||
|
||||
```console
|
||||
$ kubectl run nginx --image=nginx --replicas=2
|
||||
$ kubectl create deployment nginx --image=nginx
|
||||
deployment "nginx" created
|
||||
$ kubectl expose deployment nginx --port=80
|
||||
service "nginx" exposed
|
||||
|
@ -53,7 +53,6 @@ svc/nginx 10.100.0.16 <none> 80/TCP 33s
|
|||
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
po/nginx-701339712-e0qfq 1/1 Running 0 35s
|
||||
po/nginx-701339712-o00ef 1/1 Running 0 35s
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue