Skip to content

Commit cca324e

Browse files
author
Weiping Cai
committed
deprecated kubectl run command flag replicas for zh
Signed-off-by: Weiping Cai <[email protected]>
1 parent 347d383 commit cca324e

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

content/zh/docs/concepts/cluster-administration/manage-deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ Let's say you were running version 1.7.9 of nginx:
631631
假设您正运行的是 1.7.9 版本的 nginx:
632632

633633
```shell
634-
kubectl run my-nginx --image=nginx:1.7.9 --replicas=3
634+
kubectl create deployment my-nginx --image=nginx:1.7.9
635635
```
636636
```shell
637637
deployment.apps/my-nginx created

content/zh/docs/concepts/policy/resource-quotas.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ kubectl create quota test --hard=count/deployments.extensions=2,count/replicaset
729729
```
730730

731731
```shell
732-
kubectl run nginx --image=nginx --replicas=2 --namespace=myspace
732+
kubectl create deployment nginx --image=nginx --namespace=myspace
733733
```
734734

735735
```shell

content/zh/docs/reference/kubectl/docker-cli-to-kubectl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ kubectl run --image=nginx nginx-app --port=80 --env="DOMAIN=cluster"
5757
-->
5858
```shell
5959
# 启动运行 nginx 的 Pod
60-
kubectl run --image=nginx nginx-app --port=80 --env="DOMAIN=cluster"
60+
kubectl create deployment --image=nginx nginx-app --port=80 --env="DOMAIN=cluster"
6161
```
6262
```
6363
deployment "nginx-app" created

content/zh/docs/tasks/administer-cluster/declare-network-policy.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ content_template: templates/task
3636
为了查看 Kubernetes 网络策略是怎样工作的,可以从创建一个`nginx` deployment 并且通过服务将其暴露开始
3737

3838
```console
39-
$ kubectl run nginx --image=nginx --replicas=2
39+
$ kubectl create deployment nginx --image=nginx
4040
deployment "nginx" created
4141
$ kubectl expose deployment nginx --port=80
4242
service "nginx" exposed
@@ -53,7 +53,6 @@ svc/nginx 10.100.0.16 <none> 80/TCP 33s
5353

5454
NAME READY STATUS RESTARTS AGE
5555
po/nginx-701339712-e0qfq 1/1 Running 0 35s
56-
po/nginx-701339712-o00ef 1/1 Running 0 35s
5756
```
5857

5958

0 commit comments

Comments
 (0)