[zh]Update tutorials pages for links with '/zh/' prefix, using new prefix '/zh-cn/'

This commit is contained in:
howieyuen
2022-06-23 20:06:30 +08:00
parent e0d6f94bf6
commit 4ec6556889
26 changed files with 129 additions and 129 deletions
@@ -30,7 +30,7 @@ For more information on the features used in this tutorial, see
-->
使用"StatefulSets"可以更轻松地将有状态的应用程序部署到你的 Kubernetes 集群中。
有关本教程中使用的功能的更多信息,
参阅 [StatefulSet](/zh/docs/concepts/workloads/controllers/statefulset/)。
参阅 [StatefulSet](/zh-cn/docs/concepts/workloads/controllers/statefulset/)。
{{< note >}}
<!--
@@ -160,7 +160,7 @@ If you don't see a Service named `cassandra`, that means creation failed. Read
for help troubleshooting common issues.
-->
如果没有看到名为 `cassandra` 的服务,则表示创建失败。
请阅读[调试服务](/zh/docs/tasks/debug/debug-application/debug-service/),以解决常见问题。
请阅读[调试服务](/zh-cn/docs/tasks/debug/debug-application/debug-service/),以解决常见问题。
<!--
## Using a StatefulSet to create a Cassandra ring
@@ -29,9 +29,9 @@ This tutorial shows you how to deploy a WordPress site and a MySQL database usin
<!--
A [PersistentVolume](/docs/concepts/storage/persistent-volumes/)(PV)is a piece of storage in the cluster that has been manually provisioned by an administrator, or dynamically provisioned by Kubernetes using a [StorageClass](/docs/concepts/storage/storage-classes). A [PersistentVolumeClaim](/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims)(PVC)is a request for storage by a user that can be fulfilled by a PV. PersistentVolumes and PersistentVolumeClaims are independent from Pod lifecycles and preserve data through restarting, rescheduling, and even deleting Pods.
-->
[PersistentVolume](/zh/docs/concepts/storage/persistent-volumes/)(PV)是一块集群里由管理员手动提供,
或 kubernetes 通过 [StorageClass](/zh/docs/concepts/storage/storage-classes) 动态创建的存储。
[PersistentVolumeClaim](/zh/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims)
[PersistentVolume](/zh-cn/docs/concepts/storage/persistent-volumes/)(PV)是一块集群里由管理员手动提供,
或 kubernetes 通过 [StorageClass](/zh-cn/docs/concepts/storage/storage-classes) 动态创建的存储。
[PersistentVolumeClaim](/zh-cn/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims)
是用户对存储的请求,该请求可由某个 PV 来满足。
PersistentVolumes 和 PersistentVolumeClaims 独立于 Pod 生命周期而存在,
在 Pod 重启,重新调度甚至删除过程中保存数据。
@@ -153,7 +153,7 @@ A [Secret](/docs/concepts/configuration/secret/) is an object that stores a piec
Add a Secret generator in `kustomization.yaml` from the following command. You will need to replace `YOUR_PASSWORD` with the password you want to use.
-->
[Secret](/zh/docs/concepts/configuration/secret/) 是存储诸如密码或密钥之类的敏感数据的对象。
[Secret](/zh-cn/docs/concepts/configuration/secret/) 是存储诸如密码或密钥之类的敏感数据的对象。
从 1.14 开始,`kubectl`支持使用 kustomization 文件管理 Kubernetes 对象。
你可以通过`kustomization.yaml`中的生成器创建一个 Secret。
@@ -455,7 +455,7 @@ Do not leave your WordPress installation on this page. If another user finds it,
* Learn more about [Port Forwarding](/docs/tasks/access-application-cluster/port-forward-access-application-cluster/)
* Learn how to [Get a Shell to a Container](/docs/tasks/debug/debug-application/get-shell-running-container/)
-->
* 进一步了解[自省与调试](/zh/docs/tasks/debug/debug-application/debug-running-pod/)
* 进一步了解 [Job](/zh/docs/concepts/workloads/controllers/jobs-run-to-completion/)
* 进一步了解[端口转发](/zh/docs/tasks/access-application-cluster/port-forward-access-application-cluster/)
* 了解如何[获得容器的 Shell](/zh/docs/tasks/debug/debug-application/get-shell-running-container/)
* 进一步了解[自省与调试](/zh-cn/docs/tasks/debug/debug-application/debug-running-pod/)
* 进一步了解 [Job](/zh-cn/docs/concepts/workloads/controllers/jobs-run-to-completion/)
* 进一步了解[端口转发](/zh-cn/docs/tasks/access-application-cluster/port-forward-access-application-cluster/)
* 了解如何[获得容器的 Shell](/zh-cn/docs/tasks/debug/debug-application/get-shell-running-container/)
@@ -26,9 +26,9 @@ Kubernetes using [StatefulSets](/docs/concepts/workloads/controllers/statefulset
and [PodAntiAffinity](/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity).
-->
本教程展示了在 Kubernetes 上使用
[StatefulSet](/zh/docs/concepts/workloads/controllers/statefulset/)
[PodDisruptionBudget](/zh/docs/concepts/workloads/pods/disruptions/#pod-disruption-budget) 和
[PodAntiAffinity](/zh/docs/concepts/scheduling-eviction/assign-pod-node/#亲和与反亲和)
[StatefulSet](/zh-cn/docs/concepts/workloads/controllers/statefulset/)
[PodDisruptionBudget](/zh-cn/docs/concepts/workloads/pods/disruptions/#pod-disruption-budget) 和
[PodAntiAffinity](/zh-cn/docs/concepts/scheduling-eviction/assign-pod-node/#亲和与反亲和)
特性运行 [Apache Zookeeper](https://zookeeper.apache.org)。
## {{% heading "prerequisites" %}}
@@ -39,15 +39,15 @@ Kubernetes concepts.
-->
在开始本教程前,你应该熟悉以下 Kubernetes 概念。
- [Pods](/zh/docs/concepts/workloads/pods/)
- [集群 DNS](/zh/docs/concepts/services-networking/dns-pod-service/)
- [无头服务(Headless Service](/zh/docs/concepts/services-networking/service/#headless-services)
- [PersistentVolumes](/zh/docs/concepts/storage/persistent-volumes/)
- [Pods](/zh-cn/docs/concepts/workloads/pods/)
- [集群 DNS](/zh-cn/docs/concepts/services-networking/dns-pod-service/)
- [无头服务(Headless Service](/zh-cn/docs/concepts/services-networking/service/#headless-services)
- [PersistentVolumes](/zh-cn/docs/concepts/storage/persistent-volumes/)
- [PersistentVolume 制备](https://github.com/kubernetes/examples/tree/{{< param "githubbranch" >}}/staging/persistent-volume-provisioning/)
- [StatefulSet](/zh/docs/concepts/workloads/controllers/statefulset/)
- [PodDisruptionBudget](/zh/docs/concepts/workloads/pods/disruptions/#pod-disruption-budget)
- [PodAntiAffinity](/zh/docs/concepts/scheduling-eviction/assign-pod-node/#亲和与反亲和)
- [kubectl CLI](/zh/docs/reference/kubectl/kubectl/)
- [StatefulSet](/zh-cn/docs/concepts/workloads/controllers/statefulset/)
- [PodDisruptionBudget](/zh-cn/docs/concepts/workloads/pods/disruptions/#pod-disruption-budget)
- [PodAntiAffinity](/zh-cn/docs/concepts/scheduling-eviction/assign-pod-node/#亲和与反亲和)
- [kubectl CLI](/zh-cn/docs/reference/kubectl/kubectl/)
<!--
You must have a cluster with at least four nodes, and each node requires at least 2 CPUs and 4 GiB of memory. In this tutorial you will cordon and drain the cluster's nodes. **This means that the cluster will terminate and evict all Pods on its nodes, and the nodes will temporarily become unschedulable.** You should use a dedicated cluster for this tutorial, or you should ensure that the disruption you cause will not interfere with other tenants.
@@ -140,10 +140,10 @@ and a [StatefulSet](/docs/concepts/workloads/controllers/statefulset/).
## 创建一个 ZooKeeper Ensemble
下面的清单包含一个
[无头服务](/zh/docs/concepts/services-networking/service/#headless-services)
一个 [Service](/zh/docs/concepts/services-networking/service/)
一个 [PodDisruptionBudget](/zh/docs/concepts/workloads/pods/disruptions/#specifying-a-poddisruptionbudget)
和一个 [StatefulSet](/zh/docs/concepts/workloads/controllers/statefulset/)。
[无头服务](/zh-cn/docs/concepts/services-networking/service/#headless-services)
一个 [Service](/zh-cn/docs/concepts/services-networking/service/)
一个 [PodDisruptionBudget](/zh-cn/docs/concepts/workloads/pods/disruptions/#specifying-a-poddisruptionbudget)
和一个 [StatefulSet](/zh-cn/docs/concepts/workloads/controllers/statefulset/)。
{{< codenew file="application/zookeeper/zookeeper.yaml" >}}
@@ -308,7 +308,7 @@ The A records in [Kubernetes DNS](/docs/concepts/services-networking/dns-pod-ser
ZooKeeper stores its application configuration in a file named `zoo.cfg`. Use `kubectl exec` to view the contents of the `zoo.cfg` file in the `zk-0` Pod.
-->
[Kubernetes DNS](/zh/docs/concepts/services-networking/dns-pod-service/)
[Kubernetes DNS](/zh-cn/docs/concepts/services-networking/dns-pod-service/)
中的 A 记录将 FQDNs 解析成为 Pods 的 IP 地址。
如果 Pods 被调度,这个 A 记录将会使用 Pods 的新 IP 地址完成更新,
但 A 记录的名称不会改变。
@@ -836,7 +836,7 @@ consider deploying a [sidecar container](/docs/concepts/cluster-administration/l
-->
Kubernetes 支持与多种日志方案集成。你可以选择一个最适合你的集群和应用
的日志解决方案。对于集群级别的日志输出与整合,可以考虑部署一个
[边车容器](/zh/docs/concepts/cluster-administration/logging#sidecar-container-with-logging-agent)
[边车容器](/zh-cn/docs/concepts/cluster-administration/logging#sidecar-container-with-logging-agent)
来轮转和提供日志数据。
<!--
@@ -854,7 +854,7 @@ The `zk` `StatefulSet`'s Pod `template` contains a `SecurityContext`.
在容器中允许应用以特权用户运行这条最佳实践是值得商讨的。
如果你的组织要求应用以非特权用户运行,你可以使用
[SecurityContext](/zh/docs/tasks/configure-pod-container/security-context/)
[SecurityContext](/zh-cn/docs/tasks/configure-pod-container/security-context/)
控制运行容器入口点所使用的用户。
`zk` StatefulSet 的 Pod 的 `template` 包含了一个 `SecurityContext`
@@ -1032,7 +1032,7 @@ Use the following command to examine the process tree for the ZooKeeper server r
-->
### 处理进程故障
[重启策略](/zh/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy)
[重启策略](/zh-cn/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy)
控制 Kubernetes 如何处理一个 Pod 中容器入口点的进程故障。
对于 StatefulSet 中的 Pods 来说,Always 是唯一合适的 RestartPolicy,也是默认值。
你应该**绝不**覆盖有状态应用的默认策略。