Merge pull request #36543 from Michelle951/michelle02

[zh] sync namespaces.md
pull/36569/head
Kubernetes Prow Robot 2022-09-03 18:00:37 -07:00 committed by GitHub
commit 811b264ba2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -314,8 +314,7 @@ kubectl delete namespaces <insert-some-namespace-name>
为了演示这一点,让我们在 `development` 名字空间中启动一个简单的 Deployment 和 Pod。 为了演示这一点,让我们在 `development` 名字空间中启动一个简单的 Deployment 和 Pod。
```shell ```shell
kubectl create deployment snowflake --image=k8s.gcr.io/serve_hostname -n=development kubectl create deployment snowflake --image=registry.k8s.io/serve_hostname -n=development --replicas=2
kubectl scale deployment snowflake --replicas=2 -n=development
``` ```
<!-- <!--
@ -367,7 +366,7 @@ kubectl delete namespaces <insert-some-namespace-name>
生产环境下一般以养牛的方式运行负载,所以让我们创建一些 CattlePod。 生产环境下一般以养牛的方式运行负载,所以让我们创建一些 CattlePod。
```shell ```shell
kubectl create deployment cattle --image=k8s.gcr.io/serve_hostname -n=production kubectl create deployment cattle --image=registry.k8s.io/serve_hostname -n=production
kubectl scale deployment cattle --replicas=5 -n=production kubectl scale deployment cattle --replicas=5 -n=production
kubectl get deployment -n=production kubectl get deployment -n=production