Skip to content

Commit 0d41714

Browse files
committed
[zh-cn] sync coredns upgrading-linux-nodes
Signed-off-by: xin.li <xin.li@daocloud.io>
1 parent 2df0642 commit 0d41714

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

content/zh-cn/docs/tasks/administer-cluster/coredns.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ that will deploy and upgrade the cluster for you.
5252
## Installing CoreDNS
5353
5454
For manual deployment or replacement of kube-dns, see the documentation at the
55-
[CoreDNS GitHub project.](https://github.com/coredns/deployment/tree/master/kubernetes)
55+
[CoreDNS website](https://coredns.io/manual/installation/).
5656
-->
5757
## 安装 CoreDNS
5858

5959
有关手动部署或替换 kube-dns,请参阅
60-
[CoreDNS GitHub 项目](https://github.com/coredns/deployment/tree/master/kubernetes)
60+
[CoreDNS 网站](https://coredns.io/manual/installation/)
6161

6262
<!--
6363
## Migrating to CoreDNS
@@ -95,7 +95,8 @@ Kubernetes in the page
9595
-->
9696
## 升级 CoreDNS
9797

98-
你可以在 [CoreDNS version in Kubernetes](https://github.com/coredns/deployment/blob/master/kubernetes/CoreDNS-k8s_version.md)
98+
你可以在
99+
[Kubernetes 中的 CoreDNS 版本](https://github.com/coredns/deployment/blob/master/kubernetes/CoreDNS-k8s_version.md)
99100
页面查看 kubeadm 为不同版本 Kubernetes 所安装的 CoreDNS 版本。
100101

101102
<!--
@@ -144,6 +145,5 @@ in the CoreDNS blog.
144145
以支持比 kube-dns 更多的用例。
145146
请参考 `kubernetes` CoreDNS 插件的[文档](https://coredns.io/plugins/kubernetes/)
146147
或者 CoreDNS 博客上的博文
147-
[Custom DNS Entries for Kubernetes](https://coredns.io/2017/05/08/custom-dns-entries-for-kubernetes/)
148+
[Kubernetes 的自定义 DNS 条目](https://coredns.io/2017/05/08/custom-dns-entries-for-kubernetes/)
148149
以了解更多信息。
149-

content/zh-cn/docs/tasks/administer-cluster/kubeadm/upgrading-linux-nodes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,11 @@ Prepare the node for maintenance by marking it unschedulable and evicting the wo
105105
将节点标记为不可调度并驱逐所有负载,准备节点的维护:
106106

107107
<!--
108+
# execute this command on a control plane node
108109
# replace <node-to-drain> with the name of your node you are draining
109110
-->
110111
```shell
112+
# 在控制平面节点上执行此命令
111113
# 将 <node-to-drain> 替换为你正腾空的节点的名称
112114
kubectl drain <node-to-drain> --ignore-daemonsets
113115
```
@@ -164,9 +166,11 @@ Bring the node back online by marking it schedulable:
164166
通过将节点标记为可调度,让节点重新上线:
165167

166168
<!--
169+
# execute this command on a control plane node
167170
# replace <node-to-uncordon> with the name of your node
168171
-->
169172
```shell
173+
# 在控制平面节点上执行此命令
170174
# 将 <node-to-uncordon> 替换为你的节点名称
171175
kubectl uncordon <node-to-uncordon>
172176
```

0 commit comments

Comments
 (0)