Merge pull request #44821 from my-git9/patch-20861
[zh-cn] sync coredns upgrading-linux-nodespull/44837/head
commit
0a87391052
|
@ -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/),
|
||||||
以了解更多信息。
|
以了解更多信息。
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue