Merge pull request #44821 from my-git9/patch-20861

[zh-cn] sync coredns upgrading-linux-nodes
pull/44837/head
Kubernetes Prow Robot 2024-01-21 15:04:32 +01:00 committed by GitHub
commit 0a87391052
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 5 deletions

View File

@ -52,12 +52,12 @@ that will deploy and upgrade the cluster for you.
## Installing CoreDNS ## Installing CoreDNS
For manual deployment or replacement of kube-dns, see the documentation at the 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 ## 安装 CoreDNS
有关手动部署或替换 kube-dns请参阅 有关手动部署或替换 kube-dns请参阅
[CoreDNS GitHub 项目](https://github.com/coredns/deployment/tree/master/kubernetes)。 [CoreDNS 网站](https://coredns.io/manual/installation/)。
<!-- <!--
## Migrating to CoreDNS ## Migrating to CoreDNS
@ -95,7 +95,8 @@ Kubernetes in the page
--> -->
## 升级 CoreDNS ## 升级 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 版本。 页面查看 kubeadm 为不同版本 Kubernetes 所安装的 CoreDNS 版本。
<!-- <!--
@ -144,6 +145,5 @@ in the CoreDNS blog.
以支持比 kube-dns 更多的用例。 以支持比 kube-dns 更多的用例。
请参考 `kubernetes` CoreDNS 插件的[文档](https://coredns.io/plugins/kubernetes/) 请参考 `kubernetes` CoreDNS 插件的[文档](https://coredns.io/plugins/kubernetes/)
或者 CoreDNS 博客上的博文 或者 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/)
以了解更多信息。 以了解更多信息。

View File

@ -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 # replace <node-to-drain> with the name of your node you are draining
--> -->
```shell ```shell
# 在控制平面节点上执行此命令
# 将 <node-to-drain> 替换为你正腾空的节点的名称 # 将 <node-to-drain> 替换为你正腾空的节点的名称
kubectl drain <node-to-drain> --ignore-daemonsets kubectl drain <node-to-drain> --ignore-daemonsets
``` ```
@ -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 # replace <node-to-uncordon> with the name of your node
--> -->
```shell ```shell
# 在控制平面节点上执行此命令
# 将 <node-to-uncordon> 替换为你的节点名称 # 将 <node-to-uncordon> 替换为你的节点名称
kubectl uncordon <node-to-uncordon> kubectl uncordon <node-to-uncordon>
``` ```