Merge pull request #21537 from Cweiping/remove_kubectl_run_command_deprecated_zh

deprecated kubectl run command flag replicas for zh
This commit is contained in:
Kubernetes Prow Robot
2020-06-19 21:02:40 -07:00
committed by GitHub
4 changed files with 19 additions and 13 deletions
@@ -37,7 +37,7 @@ content_type: 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
@@ -54,7 +54,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
```