Skip to content

Commit bf6782c

Browse files
authored
Merge pull request #34503 from howieyuen/blog-pages-2
[zh]Update blog pages(2018-2022) for links with '/zh/' prefix, using new prefix '/zh-cn/'
2 parents b0e8862 + 06b6a2d commit bf6782c

25 files changed

+90
-90
lines changed

content/zh-cn/blog/_posts/2018-07-10-coredns-ga.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ customized Corefile for you, including all of the configuration for stub domains
8787
在 CoreDNS 中,您可以类似地修改 CoreDNS [Corefile](https://coredns.io/2017/07/23/corefile-explained/) 的 ConfigMap,以更改服务发现的工作方式。这种 Corefile 配置提供了比 kube-dns 中更多的选项,因为它是 CoreDNS 用于配置所有功能的主要配置文件,即使与 Kubernetes 不相关的功能也可以操作。
8888

8989
使用 `kubeadm` 将 kube-dns 升级到 CoreDNS 时,现有的 ConfigMap 将被用来为您生成自定义的 Corefile,包括存根域、联盟和上游名称服务器的所有配置。更多详细信息,请参见
90-
[使用 CoreDNS 进行服务发现](/zh/docs/tasks/administer-cluster/coredns/)
90+
[使用 CoreDNS 进行服务发现](/zh-cn/docs/tasks/administer-cluster/coredns/)
9191

9292
<!--
9393
## Bug fixes and enhancements

content/zh-cn/blog/_posts/2018-07-11-dynamic-kubelet-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Dynamic Kubelet configuration gives cluster administrators and service providers
5858
<!--
5959
Kubernetes v1.10 made it possible to configure the Kubelet via a beta [config file](/docs/tasks/administer-cluster/kubelet-config-file/) API. Kubernetes already provides the ConfigMap abstraction for storing arbitrary file data in the API server.
6060
-->
61-
Kubernetes v1.10 使得可以通过 Beta 版本的[配置文件](/zh/docs/tasks/administer-cluster/kubelet-config-file/)
61+
Kubernetes v1.10 使得可以通过 Beta 版本的[配置文件](/zh-cn/docs/tasks/administer-cluster/kubelet-config-file/)
6262
API 配置 kubelet。
6363
Kubernetes 已经提供了用于在 API 服务器中存储任意文件数据的 ConfigMap 抽象。
6464

content/zh-cn/blog/_posts/2018-10-01-health-checking-grpc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To learn more, see [Configure Liveness, Readiness and Startup Probes](/docs/task
2121
This article was originally written about an external tool to achieve the same task._
2222
-->
2323
**更新(2021 年 12 月):** “Kubernetes 从 v1.23 开始具有内置 gRPC 健康探测。
24-
了解更多信息,请参阅[配置存活探针、就绪探针和启动探针](/zh/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-a-grpc-liveness-probe)
24+
了解更多信息,请参阅[配置存活探针、就绪探针和启动探针](/zh-cn/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-a-grpc-liveness-probe)
2525
本文最初是为有关实现相同任务的外部工具所写。”
2626

2727
<!--

content/zh-cn/blog/_posts/2018-10-10-runtimeclass.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ The RuntimeClass resource is an important foundation for surfacing runtime prope
8585
-->
8686
RuntimeClass 资源是将运行时属性显示到控制平面的重要基础。
8787
例如,要对具有支持不同运行时间的异构节点的集群实施调度程序支持,我们可以在 RuntimeClass 定义中添加
88-
[NodeAffinity](/zh/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity)条件。
88+
[NodeAffinity](/zh-cn/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity)条件。
8989
另一个需要解决的领域是管理可变资源需求以运行不同运行时的 Pod。
9090
[Pod Overhead 提案](https://docs.google.com/document/d/1EJKT4gyl58-kzt2bnwkv08MIUZ6lkDpXcxkHqCvvAp4/preview)
9191
是一项较早的尝试,与 RuntimeClass 设计非常吻合,并且可能会进一步推广。
@@ -128,7 +128,7 @@ RuntimeClass will be under active development at least through 2019, and we’re
128128
-->
129129

130130
- 试试吧! 作为Alpha功能,还有一些其他设置步骤可以使用RuntimeClass。
131-
有关如何使其运行,请参考 [RuntimeClass文档](/zh/docs/concepts/containers/runtime-class/#runtime-class)
131+
有关如何使其运行,请参考 [RuntimeClass文档](/zh-cn/docs/concepts/containers/runtime-class/#runtime-class)
132132
- 查看 [RuntimeClass Kubernetes 增强建议](https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/runtime-class.md) 以获取更多细节设计细节。
133133
- [沙盒隔离级别决策](https://docs.google.com/document/d/1fe7lQUjYKR0cijRmSbH_y0_l3CYPkwtQa5ViywuNo8Q/preview)
134134
记录了最初使 RuntimeClass 成为 Pod 级别选项的思考过程。

content/zh-cn/blog/_posts/2019-04-26-latest-on-localization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ By _partially available_, I mean that localizations are ongoing projects. They r
2121

2222
去年我们对 Kubernetes 网站进行了优化,加入了[多语言内容的支持](https://kubernetes.io/blog/2018/11/08/kubernetes-docs-updates-international-edition/)。贡献者们踊跃响应,加入了多种新的本地化内容:截至 2019 年 4 月,Kubernetes 文档有了 9 个不同语言的未完成版本,其中有 6 个是 2019 年加入的。在每个 Kubernetes 文档页面的上方,读者都可以看到一个语言选择器,其中列出了所有可用语言。
2323

24-
不论是完成度最高的[中文版 v1.12](https://v1-12.docs.kubernetes.io/zh/),还是最新加入的[葡萄牙文版 v1.14](https://kubernetes.io/pt/),各语言的本地化内容还未完成,这是一个进行中的项目。如果读者有兴趣对现有本地化工作提供支持,请继续阅读。
24+
不论是完成度最高的[中文版 v1.12](https://v1-12.docs.kubernetes.io/zh-cn/),还是最新加入的[葡萄牙文版 v1.14](https://kubernetes.io/pt/),各语言的本地化内容还未完成,这是一个进行中的项目。如果读者有兴趣对现有本地化工作提供支持,请继续阅读。
2525

2626
<!--
2727
## What is a localization?

content/zh-cn/blog/_posts/2019-12-09-kubernetes-1.17-release-announcement.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ Standard labels are used by Kubernetes components to support some features. For
6969
The labels are reaching general availability in this release. Kubernetes components have been updated to populate the GA and beta labels and to react to both. However, if you are using the beta labels in your pod specs for features such as node affinity, or in your custom controllers, we recommend that you start migrating them to the new GA labels. You can find the documentation for the new labels here:
7070
-->
7171

72-
- [实例类型](/zh/docs/reference/labels-annotations-taints/#nodekubernetesioinstance-type)
73-
- [地区](/zh/docs/reference/labels-annotations-taints/#topologykubernetesioregion)
74-
- [区域](/zh/docs/reference/labels-annotations-taints/#topologykubernetesiozone)
72+
- [实例类型](/zh-cn/docs/reference/labels-annotations-taints/#nodekubernetesioinstance-type)
73+
- [地区](/zh-cn/docs/reference/labels-annotations-taints/#topologykubernetesioregion)
74+
- [区域](/zh-cn/docs/reference/labels-annotations-taints/#topologykubernetesiozone)
7575

7676
<!--
7777
- [node.kubernetes.io/instance-type](/docs/reference/labels-annotations-taints/#nodekubernetesioinstance-type)

content/zh-cn/blog/_posts/2020-09-30-writing-crl-scheduler/index.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ Most stateless systems, web servers for example, are created without the need to
4545
One of Kubernetes' responsibilities is to place "resources" (e.g, a disk or container) into the cluster and satisfy the constraints they request. For example: "I must be in availability zone _A_" (see [Running in multiple zones](/docs/setup/best-practices/multiple-zones/#nodes-are-labeled)), or "I can't be placed onto the same node as this other Pod" (see [Affinity and anti-affinity](/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity)).
4646
-->
4747
Kubernetes 的职责之一是将 "资源"(如磁盘或容器)放入集群中,并满足其请求的约束。
48-
例如。"我必须在可用性区域 _A_"(见[在多个区域运行](/zh/docs/setup/best-practices/multiple-zone/#nodes-are-labeled)),
48+
例如。"我必须在可用性区域 _A_"(见[在多个区域运行](/zh-cn/docs/setup/best-practices/multiple-zone/#nodes-are-labeled)),
4949
或者 "我不能被放置到与某个 Pod 相同的节点上"
50-
(见[亲和与反亲和](/zh/docs/setup/best-practices/multiple-zone/#nodes-are-labeled))。
50+
(见[亲和与反亲和](/zh-cn/docs/setup/best-practices/multiple-zone/#nodes-are-labeled))。
5151

5252
<!--
5353
As an addition to those constraints, Kubernetes offers [Statefulsets](/docs/concepts/workloads/controllers/statefulset/) that provide identity to Pods as well as persistent storage that "follows" these identified pods. Identity in a StatefulSet is handled by an increasing integer at the end of a pod's name. It's important to note that this integer must always be contiguous: in a StatefulSet, if pods 1 and 3 exist then pod 2 must also exist.
5454
-->
55-
作为对这些约束的补充,Kubernetes 提供了 [StatefulSets](/zh/docs/concepts/workloads/controllers/statefulset/)
55+
作为对这些约束的补充,Kubernetes 提供了 [StatefulSets](/zh-cn/docs/concepts/workloads/controllers/statefulset/)
5656
为 Pod 提供身份,以及 "跟随" 这些指定 Pod 的持久化存储。
5757
在 StatefulSet 中,身份是由 Pod 名称末尾一个呈增序的整数处理的。
5858
值得注意的是,这个整数必须始终是连续的:在一个 StatefulSet 中,
@@ -115,7 +115,7 @@ Consider the cluster topology below:
115115
-->
116116
现在,请记住,规模为 _n_ 的 StatefulSet 中的 Pods 一定具有 `[0,n)` 范围内的 id。
117117
当把一个 StatefulSet 规模缩减了 _m_ 时,Kubernetes 会移除 _m_ 个 Pod,从最高的序号开始,向最低的序号移动,
118-
[与它们被添加的顺序相反](/zh/docs/concepts/workloads/controllers/statefulset/#deployment-and-scaling-guarantees)
118+
[与它们被添加的顺序相反](/zh-cn/docs/concepts/workloads/controllers/statefulset/#deployment-and-scaling-guarantees)
119119
考虑一下下面的集群拓扑结构。
120120

121121
<!--
@@ -144,9 +144,9 @@ Our combined knowledge of the following is what lead to this misconception.
144144
* The behavior that a StatefulSet with _n_ replicas, when Pods are being deployed, they are created sequentially, in order from `{0..n-1}`. See [StatefulSet](https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#deployment-and-scaling-guarantees) for more details.
145145
-->
146146
我们对以下内容的综合认识是导致这种误解的原因。
147-
* Kubernetes [自动跨区分配 Pod](/zh/docs/setup/best-practices/multiple-zone/#pods-are-spread-across-zone) 的能力
147+
* Kubernetes [自动跨区分配 Pod](/zh-cn/docs/setup/best-practices/multiple-zone/#pods-are-spread-across-zone) 的能力
148148
* 一个有 _n_ 个副本的 StatefulSet,当 Pod 被部署时,它们会按照 `{0...n-1}` 的顺序依次创建。
149-
更多细节见 [StatefulSet](/zh/docs/concepts/workloads/controllers/statefulset/#deployment-and-scaling-guarantees)
149+
更多细节见 [StatefulSet](/zh-cn/docs/concepts/workloads/controllers/statefulset/#deployment-and-scaling-guarantees)
150150

151151
<!--
152152
Consider the following topology:
@@ -197,7 +197,7 @@ The entire endeavour was concerningly reminiscent of checking [caniuse.com](http
197197

198198
虽然这似乎是一个完美的解决方案,但在写这篇文章的时候,Kubernetes 1.18 在公有云中两个最常见的
199199
托管 Kubernetes 服务( EKS 和 GKE )上是不可用的。
200-
此外,[Pod 拓扑分布约束](/zh/docs/concepts/workloads/pods/pod-topology-spread-constraints/)
200+
此外,[Pod 拓扑分布约束](/zh-cn/docs/concepts/workloads/pods/pod-topology-spread-constraints/)
201201
[1.18 中仍是测试版功能](https://v1-18.docs.kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/)
202202
这意味着即使在 v1.18 可用时,它[也不能保证在托管集群中可用](https://cloud.google.com/kubernetes-engine/docs/concepts/types-of-clusters#kubernetes_feature_choices)
203203
整个努力让人联想到在 Internet Explorer 8 还存在的时候访问 [caniuse.com](https://caniuse.com/)
@@ -236,12 +236,12 @@ _[Chris Seto](https://twitter.com/_ostriches) is a software engineer at Cockroac
236236
### 3. 编写一个自定义的 Kubernetes 调度器
237237

238238
感谢 [Kelsey Hightower](https://github.com/kelseyhightower/scheduler) 的例子和
239-
[Banzai Cloud](https://banzaicloud.com/blog/k8s-custom-scheduler/) 的博文,我们决定投入进去,编写自己的[自定义 Kubernetes 调度器](/zh/docs/tasks/extend-kubernetes/configure-multiple-schedulers/)
239+
[Banzai Cloud](https://banzaicloud.com/blog/k8s-custom-scheduler/) 的博文,我们决定投入进去,编写自己的[自定义 Kubernetes 调度器](/zh-cn/docs/tasks/extend-kubernetes/configure-multiple-schedulers/)
240240
一旦我们的概念验证被部署和运行,我们很快就发现,Kubernetes 的调度器也负责将持久化卷映射到它所调度的 Pod 上。
241-
[`kubectl get events`](/zh/docs/tasks/extend-kubernetes/configure-multiple-schedulers/#verifying-that-the-pods-wer-scheduled-using-the-desired-schedulers)
241+
[`kubectl get events`](/zh-cn/docs/tasks/extend-kubernetes/configure-multiple-schedulers/#verifying-that-the-pods-wer-scheduled-using-the-desired-schedulers)
242242
的输出让我们相信有另一个系统在发挥作用。
243243
在我们寻找负责存储声明映射的组件的过程中,我们发现了
244-
[kube-scheduler 插件系统](/zh/docs/concepts/scheduling-eviction/scheduling-framework/)
244+
[kube-scheduler 插件系统](/zh-cn/docs/concepts/scheduling-eviction/scheduling-framework/)
245245
我们的下一个 POC 是一个"过滤器"插件,它通过 Pod 的序号来确定适当的可用区域,并且工作得非常完美。
246246

247247
我们的[自定义调度器插件](https://github.com/cockroachlabs/crl-scheduler)是开源的,并在我们所有的 CockroachCloud 集群中运行。

content/zh-cn/blog/_posts/2020-12-02-dockershim-faq.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ slug: dockershim-faq
1414
<!--
1515
_**Update**: There is a [newer version](/blog/2022/02/17/dockershim-faq/) of this article available._
1616
-->
17-
_**更新**:本文有[较新版本](/zh/blog/2022/02/17/dockershim-faq/)_
17+
_**更新**:本文有[较新版本](/zh-cn/blog/2022/02/17/dockershim-faq/)_
1818

1919
<!--
2020
This document goes over some frequently asked questions regarding the Dockershim
@@ -29,7 +29,7 @@ Also, you can read [check whether Dockershim removal affects you](/docs/tasks/ad
2929
关于 Kubernetes kubelets 从容器运行时的角度弃用 Docker 的细节以及这些细节背后的含义,请参考博文
3030
[别慌: Kubernetes 和 Docker](/blog/2020/12/02/dont-panic-kubernetes-and-docker/)
3131

32-
此外,你可以阅读[检查 Dockershim 移除是否影响你](/zh/docs/tasks/administer-cluster/migrating-from-dockershim/check-if-dockershim-deprecation-affects-you/)以检查它是否会影响你。
32+
此外,你可以阅读[检查 Dockershim 移除是否影响你](/zh-cn/docs/tasks/administer-cluster/migrating-from-dockershim/check-if-dockershim-deprecation-affects-you/)以检查它是否会影响你。
3333

3434
<!--
3535
### Why is dockershim being deprecated?
@@ -76,7 +76,7 @@ Yes, the only thing changing in 1.20 is a single warning log printed at [kubelet
7676
startup if using Docker as the runtime.
7777
-->
7878
当然可以,在 1.20 版本中仅有的改变就是:如果使用 Docker 运行时,启动
79-
[kubelet](/zh/docs/reference/command-line-tools-reference/kubelet/)
79+
[kubelet](/zh-cn/docs/reference/command-line-tools-reference/kubelet/)
8080
的过程中将打印一条警告日志。
8181

8282
<!--
@@ -292,7 +292,7 @@ latter you can use newer container build options like [img], [buildah],
292292
-->
293293
另外还有一个需要关注的点,那就是当创建镜像时,系统维护或嵌入容器方面的任务将无法工作。
294294
对于前者,可以用 [`crictl`](https://github.com/kubernetes-sigs/cri-tools) 工具作为临时替代方案
295-
(参见[从 docker 命令映射到 crictl](/zh/docs/reference/tools/map-crictl-dockercli/));
295+
(参见[从 docker 命令映射到 crictl](/zh-cn/docs/reference/tools/map-crictl-dockercli/));
296296
对于后者,可以用新的容器创建选项,比如
297297
[cr](https://github.com/kubernetes-sigs/cri-tools)
298298
[img](https://github.com/genuinetools/img)
@@ -315,7 +315,7 @@ For instructions on how to use containerd and CRI-O with Kubernetes, see the
315315
Kubernetes documentation on [Container Runtimes]
316316
-->
317317
对于如何协同 Kubernetes 使用 containerd 和 CRI-O 的说明,参见 Kubernetes 文档中这部分:
318-
[容器运行时](/zh/docs/setup/production-environment/container-runtimes)
318+
[容器运行时](/zh-cn/docs/setup/production-environment/container-runtimes)
319319

320320
<!--
321321
### What if I have more questions?

content/zh-cn/blog/_posts/2020-12-02-dont-panic-kubernetes-and-docker.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ For more information, read the [removal FAQ](/dockershim).
2121
You can also discuss the deprecation via a dedicated [GitHub issue](https://github.com/kubernetes/kubernetes/issues/106917)._
2222
-->
2323
**更新**:Kubernetes 通过 `dockershim` 对 Docker 的支持现已移除。
24-
有关更多信息,请阅读[移除 FAQ](/zh/dockershim)
24+
有关更多信息,请阅读[移除 FAQ](/zh-cn/dockershim)
2525
你还可以通过专门的 [GitHub issue](https://github.com/kubernetes/kubernetes/issues/106917) 讨论弃用。
2626

2727
<!--
@@ -217,4 +217,4 @@ Kubernetes 有很多变化中的功能,没有人是100%的专家。
217217
Looking for more answers? Check out our accompanying [Dockershim Removal FAQ](/blog/2022/02/17/dockershim-faq/) _(updated February 2022)_.
218218
-->
219219
还在寻求更多答案吗?请参考我们附带的
220-
[移除 Dockershim 的常见问题](/zh/blog/2020/12/02/dockershim-faq/) _(2022年2月更新)_
220+
[移除 Dockershim 的常见问题](/zh-cn/blog/2020/12/02/dockershim-faq/) _(2022年2月更新)_

content/zh-cn/blog/_posts/2020-12-08-kubernetes-release-1.20.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ evergreen: true
5656
请注意,作为新的内置命令,`kubectl debug` 优先于任何名为 “debug” 的 kubectl 插件。你必须重命名受影响的插件。
5757

5858
<!-- Invocations using `kubectl alpha debug` are now deprecated and will be removed in a subsequent release. Update your scripts to use `kubectl debug`. For more information about `kubectl debug`, see [Debugging Running Pods](https://kubernetes.io/docs/tasks/debug/debug-application/debug-running-pod/). -->
59-
`kubectl alpha debug` 现在不推荐使用,并将在后续版本中删除。更新你的脚本以使用 `kubectl debug`。 有关更多信息 `kubectl debug`,请参阅[调试正在运行的 Pod]((https://kubernetes.io/zh/docs/tasks/debug/debug-application/debug-running-pod/)。
59+
`kubectl alpha debug` 现在不推荐使用,并将在后续版本中删除。更新你的脚本以使用 `kubectl debug`。 有关更多信息 `kubectl debug`,请参阅[调试正在运行的 Pod]((https://kubernetes.io/zh-cn/docs/tasks/debug/debug-application/debug-running-pod/)。
6060

6161
<!-- ### Beta: API Priority and Fairness -->
6262
### 测试版:API 优先级和公平性 {#beta-api-priority-and-fairness)
@@ -110,7 +110,7 @@ Kubernetes 社区写了一篇关于弃用的详细[博客文章](https://blog.k8
110110
新引入的 `ExecProbeTimeout` 特性门控所提供的修复使集群操作员能够恢复到以前的行为,但这种行为将在后续版本中锁定并删除。为了恢复到以前的行为,集群运营商应该将此特性门控设置为 `false`
111111

112112
<!-- Please review the updated documentation regarding [configuring probes](/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes) for more details. -->
113-
有关更多详细信息,请查看有关配置探针的[更新文档](/zh/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes)
113+
有关更多详细信息,请查看有关配置探针的[更新文档](/zh-cn/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes)
114114

115115
<!-- ## Other Updates -->
116116
## 其他更新 {#other-updates}

0 commit comments

Comments
 (0)