Clean zh/docs directory for dangling YAML files (#17341)

There are many YAML manifests sneaking into the `zh/docs/` directory.
These files should go to the `zh/examples` directory instead. Having
these "garbage" files (not referenced anywhere) is creating confusion
for the release meister when merging branches. For example, some YAML
files found in the 'master' branch are no longer there in the
release-1.16 branch. It is tedious, if possible at all, to solve all
this kind of conflicts during a rebase.

The PR cleanses the zh/docs directory for all dangling YAML files.
This commit is contained in:
Qiming
2019-11-04 08:24:48 +08:00
committed by GitHub
parent 8c5faa68b7
commit 9bf026e951
138 changed files with 603 additions and 2740 deletions
@@ -60,6 +60,8 @@ Pod 使用来自 Google [容器仓库](https://cloud.google.com/container-regist
## 快速入门
{{< codenew file="application/cassandra/cassandra-service.yaml" >}}
如果你希望直接跳到我们使用的命令,以下是全部步骤:
<!--
@@ -71,19 +73,15 @@ Pod 使用来自 Google [容器仓库](https://cloud.google.com/container-regist
-->
```sh
#
# StatefulSet
#
# 克隆示例存储库
git clone https://github.com/kubernetes/examples
cd examples
kubectl apply -f https://k8s.io/examples/application/cassandra/cassandra-service.yaml
```
# 创建服务来跟踪所有 cassandra statefulset 节点
kubectl create -f cassandra/cassandra-service.yaml
{{< codenew file="application/cassandra/cassandra-statefulset.yaml" >}}
```
# 创建 statefulset
kubectl create -f cassandra/cassandra-statefulset.yaml
kubectl apply -f https://k8s.io/examples/application/cassandra/cassandra-statefulset.yaml
# 验证 Cassandra 集群。替换一个 pod 的名称。
kubectl exec -ti cassandra-0 -- nodetool status
@@ -157,18 +155,15 @@ spec:
```
[下载示例](https://raw.githubusercontent.com/kubernetes/examples/master/cassandra-service.yaml)
Download [`cassandra-service.yaml`](/examples/application/cassandra/cassandra-service.yaml)
and [`cassandra-statefulset.yaml`](/examples/application/cassandra/cassandra-statefulset.yaml)
为 StatefulSet 创建 service
```console
$ kubectl create -f cassandra/cassandra-service.yaml
kubectl apply -f https://k8s.io/examples/application/cassandra/cassandra-service.yaml
```
以下命令显示了 service 是否被成功创建。
```console
@@ -291,17 +286,14 @@ parameters:
type: pd-ssd
```
[下载示例](https://raw.githubusercontent.com/kubernetes/examples/master/cassandra-statefulset.yaml)
创建 Cassandra StatefulSet 如下:
创建 Cassandra StatefulSet 如下:
```console
$ kubectl create -f cassandra/cassandra-statefulset.yaml
kubectl apply -f https://k8s.io/examples/application/cassandra/cassandra-statefulset.yaml
```
## 步骤 3:验证和修改 Cassandra StatefulSet
这个 StatefulSet 的部署展示了 StatefulSets 提供的两个新特性:
1. Pod 的名称已知