Merge pull request #38871 from windsonsea/upgradey
[zh] sync cluster-upgrade.md
This commit is contained in:
commit
15d92d12d6
|
@ -49,7 +49,9 @@ the documentation for the version of Kubernetes that you plan to upgrade to.
|
||||||
如果你的集群未运行 Kubernetes {{< skew currentVersionAddMinor -1 >}},
|
如果你的集群未运行 Kubernetes {{< skew currentVersionAddMinor -1 >}},
|
||||||
那请参考目标 Kubernetes 版本的文档。
|
那请参考目标 Kubernetes 版本的文档。
|
||||||
|
|
||||||
<!-- ## Upgrade approaches -->
|
<!--
|
||||||
|
## Upgrade approaches
|
||||||
|
-->
|
||||||
## 升级方法 {#upgrade-approaches}
|
## 升级方法 {#upgrade-approaches}
|
||||||
|
|
||||||
### kubeadm {#upgrade-kubeadm}
|
### kubeadm {#upgrade-kubeadm}
|
||||||
|
@ -63,34 +65,34 @@ Once you have upgraded the cluster, remember to
|
||||||
[install the latest version of `kubectl`](/docs/tasks/tools/).
|
[install the latest version of `kubectl`](/docs/tasks/tools/).
|
||||||
-->
|
-->
|
||||||
如果你的集群是使用 `kubeadm` 安装工具部署而来,
|
如果你的集群是使用 `kubeadm` 安装工具部署而来,
|
||||||
那么升级集群的详细信息,请参阅
|
那么升级集群的详细信息,请参阅[升级 kubeadm 集群](/zh-cn/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/)。
|
||||||
[升级 kubeadm 集群](/zh-cn/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/)。
|
|
||||||
|
|
||||||
升级集群之后,要记得
|
升级集群之后,要记得[安装最新版本的 `kubectl`](/zh-cn/docs/tasks/tools/)。
|
||||||
[安装最新版本的 `kubectl`](/zh-cn/docs/tasks/tools/).
|
|
||||||
|
|
||||||
<!-- ### Manual deployments -->
|
<!--
|
||||||
|
### Manual deployments
|
||||||
|
-->
|
||||||
### 手动部署 {#manual-deployments}
|
### 手动部署 {#manual-deployments}
|
||||||
|
|
||||||
|
{{< caution >}}
|
||||||
<!--
|
<!--
|
||||||
These steps do not account for third-party extensions such as network and storage
|
These steps do not account for third-party extensions such as network and storage
|
||||||
plugins.
|
plugins.
|
||||||
|
|
||||||
You should manually update the control plane following this sequence:
|
|
||||||
-->
|
-->
|
||||||
{{< caution >}}
|
这些步骤不考虑网络和存储插件等第三方扩展。
|
||||||
这些步骤不考虑第三方扩展,例如网络和存储插件。
|
|
||||||
{{< /caution >}}
|
{{< /caution >}}
|
||||||
|
|
||||||
你应该跟随下面操作顺序,手动更新控制平面:
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
You should manually update the control plane following this sequence:
|
||||||
|
|
||||||
- etcd (all instances)
|
- etcd (all instances)
|
||||||
- kube-apiserver (all control plane hosts)
|
- kube-apiserver (all control plane hosts)
|
||||||
- kube-controller-manager
|
- kube-controller-manager
|
||||||
- kube-scheduler
|
- kube-scheduler
|
||||||
- cloud controller manager, if you use one
|
- cloud controller manager, if you use one
|
||||||
-->
|
-->
|
||||||
|
你应该按照下面的操作顺序,手动更新控制平面:
|
||||||
|
|
||||||
- etcd (所有实例)
|
- etcd (所有实例)
|
||||||
- kube-apiserver (所有控制平面的宿主机)
|
- kube-apiserver (所有控制平面的宿主机)
|
||||||
- kube-controller-manager
|
- kube-controller-manager
|
||||||
|
@ -103,15 +105,13 @@ At this point you should
|
||||||
|
|
||||||
For each node in your cluster, [drain](/docs/tasks/administer-cluster/safely-drain-node/)
|
For each node in your cluster, [drain](/docs/tasks/administer-cluster/safely-drain-node/)
|
||||||
that node and then either replace it with a new node that uses the {{< skew currentVersion >}}
|
that node and then either replace it with a new node that uses the {{< skew currentVersion >}}
|
||||||
kubelet, or upgrade the {{< skew currentVersion >}}
|
kubelet, or upgrade the kubelet on that node and bring the node back into service.
|
||||||
kubelet on that node and bring the node back into service.
|
|
||||||
-->
|
-->
|
||||||
现在,你应该
|
现在,你应该[安装最新版本的 `kubectl`](/zh-cn/docs/tasks/tools/)。
|
||||||
[安装最新版本的 `kubectl`](/zh-cn/docs/tasks/tools/).
|
|
||||||
|
|
||||||
对于集群中的每个节点,
|
对于集群中的每个节点,
|
||||||
首先需要[腾空](/zh-cn/docs/tasks/administer-cluster/safely-drain-node/)
|
首先需要[腾空](/zh-cn/docs/tasks/administer-cluster/safely-drain-node/)节点,
|
||||||
节点,然后使用一个运行了 kubelet {{< skew currentVersion >}} 版本的新节点替换它;
|
然后使用一个运行了 kubelet {{< skew currentVersion >}} 版本的新节点替换它;
|
||||||
或者升级此节点的 kubelet,并使节点恢复服务。
|
或者升级此节点的 kubelet,并使节点恢复服务。
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
@ -187,13 +187,14 @@ release with a newer device plugin API version, device plugins must be upgraded
|
||||||
both version before the node is upgraded in order to guarantee that device allocations
|
both version before the node is upgraded in order to guarantee that device allocations
|
||||||
continue to complete successfully during the upgrade.
|
continue to complete successfully during the upgrade.
|
||||||
|
|
||||||
Refer to [API compatiblity](docs/concepts/extend-kubernetes/compute-storage-net/device-plugins.md/#api-compatibility) and [Kubelet Device Manager API Versions](docs/reference/node/device-plugin-api-versions.md) for more details.
|
Refer to [API compatibility](/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/#api-compatibility) and [Kubelet Device Manager API Versions](/docs/reference/node/device-plugin-api-versions/) for more details.
|
||||||
-->
|
-->
|
||||||
### 设备插件 {#device-plugins}
|
### 设备插件 {#device-plugins}
|
||||||
|
|
||||||
如果你的集群正在运行设备插件(Device Plugins)并且节点需要升级到具有更新的设备插件(Device Plugins)
|
如果你的集群正在运行设备插件(Device Plugin)并且节点需要升级到具有更新的设备插件(Device Plugin)
|
||||||
API 版本的 Kubernetes 版本,则必须在升级节点之前升级设备插件以同时支持这两个插件 API 版本,
|
API 版本的 Kubernetes 版本,则必须在升级节点之前升级设备插件以同时支持这两个插件 API 版本,
|
||||||
以确保升级过程中设备分配能够继续成功完成。
|
以确保升级过程中设备分配能够继续成功完成。
|
||||||
|
|
||||||
有关详细信息,请参阅 [API 兼容性](/zh-cn/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins.md/#api-compatibility)和
|
有关详细信息,请参阅
|
||||||
[kubelet 设备管理器 API 版本](/zh-cn/docs/reference/node/device-plugin-api-versions.md)。
|
[API 兼容性](/zh-cn/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/#api-compatibility)和
|
||||||
|
[kubelet 设备管理器 API 版本](/zh-cn/docs/reference/node/device-plugin-api-versions/)。
|
||||||
|
|
Loading…
Reference in New Issue