Skip to content

Commit

Permalink
[zh-cn] sync coredns upgrading-linux-nodes
Browse files Browse the repository at this point in the history
Signed-off-by: xin.li <xin.li@daocloud.io>
  • Loading branch information
my-git9 committed Jan 20, 2024
1 parent 2df0642 commit 0d41714
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 5 additions & 5 deletions content/zh-cn/docs/tasks/administer-cluster/coredns.md
Expand Up @@ -52,12 +52,12 @@ that will deploy and upgrade the cluster for you.
## Installing CoreDNS
For manual deployment or replacement of kube-dns, see the documentation at the
[CoreDNS GitHub project.](https://github.com/coredns/deployment/tree/master/kubernetes)
[CoreDNS website](https://coredns.io/manual/installation/).
-->
## 安装 CoreDNS

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

<!--
## Migrating to CoreDNS
Expand Down Expand Up @@ -95,7 +95,8 @@ Kubernetes in the page
-->
## 升级 CoreDNS

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

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

Expand Up @@ -105,9 +105,11 @@ Prepare the node for maintenance by marking it unschedulable and evicting the wo
将节点标记为不可调度并驱逐所有负载,准备节点的维护:

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

<!--
# execute this command on a control plane node
# replace <node-to-uncordon> with the name of your node
-->
```shell
# 在控制平面节点上执行此命令
# 将 <node-to-uncordon> 替换为你的节点名称
kubectl uncordon <node-to-uncordon>
```
Expand Down

0 comments on commit 0d41714

Please sign in to comment.