Skip to content

Commit 558d342

Browse files
committed
[zh-cn] sync kubeadm-upgrade.md
1 parent 6598e60 commit 558d342

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

content/zh-cn/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ please refer to following pages instead:
4444
<!--
4545
The Kubernetes project recommends upgrading to the latest patch releases promptly, and
4646
to ensure that you are running a supported minor release of Kubernetes.
47-
Following this recommendation helps you to to stay secure.
47+
Following this recommendation helps you to stay secure.
4848
-->
4949
Kubernetes 项目建议立即升级到最新的补丁版本,并确保你运行的是受支持的 Kubernetes 次要版本。
5050
遵循此建议可帮助你保持安全。
@@ -96,8 +96,8 @@ The upgrade workflow at high level is the following:
9696
- All containers are restarted after upgrade, because the container spec hash value is changed.
9797
-->
9898
- 下述说明了在升级过程中何时腾空每个节点。如果你正在对任何 kubelet 进行小版本升级,
99-
你需要先腾空待升级的节点(或多个节点)。对于控制面节点,其上可能运行着 CoreDNS Pod
100-
或者其它非常重要的负载。更多信息见[腾空节点](/zh-cn/docs/tasks/administer-cluster/safely-drain-node/)
99+
你需要先腾空待升级的节点(或多个节点)。对于控制平面节点,其上可能运行着 CoreDNS Pod
100+
或者其他非常重要的负载。更多信息见[腾空节点](/zh-cn/docs/tasks/administer-cluster/safely-drain-node/)
101101
- Kubernetes 项目推荐你使用版本匹配的 kubelet 和 kubeadm。
102102
但你也可以使用比 kubeadm 版本更低的 kubelet 版本,前提是该版本仍处于支持的版本范围内。
103103
欲了解更多信息,请访问 [kubeadm 与 kubelet 的版本差异](/zh-cn/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/#kubeadm-s-skew-against-the-kubelet)
@@ -132,7 +132,7 @@ apply` command. This permits to complete in-flight requests and close existing
132132
connections, and minimizes the consequence of the etcd downtime. This can be
133133
done as follows on control plane nodes:
134134
-->
135-
### 升级 etcd 时的注意事项
135+
### 升级 etcd 时的注意事项 {#considerations-when-upgrading-etcd}
136136

137137
由于 `kube-apiserver` 静态 Pod 始终在运行(即使你已经执行了腾空节点的操作),
138138
因此当你执行包括 etcd 升级在内的 kubeadm 升级时,对服务器正在进行的请求将停滞,
@@ -232,8 +232,8 @@ If you don't see the version you expect to upgrade to, [verify if the Kubernetes
232232
The upgrade procedure on control plane nodes should be executed one node at a time.
233233
Pick a control plane node that you wish to upgrade first. It must have the `/etc/kubernetes/admin.conf` file.
234234
-->
235-
控制面节点上的升级过程应该每次处理一个节点
236-
首先选择一个要先行升级的控制面节点。该节点上必须拥有
235+
控制平面节点上的升级过程应该每次处理一个节点
236+
首先选择一个要先行升级的控制平面节点。该节点上必须拥有
237237
`/etc/kubernetes/admin.conf` 文件。
238238

239239
<!--
@@ -244,7 +244,7 @@ Pick a control plane node that you wish to upgrade first. It must have the `/etc
244244
<!--
245245
**For the first control plane node**
246246
-->
247-
**对于第一个控制面节点**
247+
**对于第一个控制平面节点**
248248

249249
<!--
250250
1. Upgrade kubeadm:
@@ -390,12 +390,12 @@ Pick a control plane node that you wish to upgrade first. It must have the `/etc
390390
<!--
391391
**For the other control plane nodes**
392392
-->
393-
**对于其它控制面节点**
393+
**对于其他控制平面节点**
394394

395395
<!--
396396
Same as the first control plane node but use:
397397
-->
398-
与第一个控制面节点相同,但是使用:
398+
与第一个控制平面节点相同,但是使用:
399399

400400
```shell
401401
sudo kubeadm upgrade node
@@ -432,7 +432,7 @@ kubectl drain <node-to-drain> --ignore-daemonsets
432432
```
433433
-->
434434
```shell
435-
# 将 <node-to-drain> 替换为你要腾空的控制面节点名称
435+
# 将 <node-to-drain> 替换为你要腾空的控制平面节点名称
436436
kubectl drain <node-to-drain> --ignore-daemonsets
437437
```
438438

@@ -587,7 +587,7 @@ During upgrade kubeadm writes the following backup folders under `/etc/kubernete
587587
In case of an etcd upgrade failure and if the automatic rollback does not work, the contents of this folder
588588
can be manually restored in `/var/lib/etcd`. In case external etcd is used this backup folder will be empty.
589589
-->
590-
`kubeadm-backup-etcd` 包含当前控制面节点本地 etcd 成员数据的备份。
590+
`kubeadm-backup-etcd` 包含当前控制平面节点本地 etcd 成员数据的备份。
591591
如果 etcd 升级失败并且自动回滚也无法修复,则可以将此文件夹中的内容复制到
592592
`/var/lib/etcd` 进行手工修复。如果使用的是外部的 etcd,则此备份文件夹为空。
593593

@@ -597,7 +597,7 @@ In case of a upgrade failure and if the automatic rollback does not work, the co
597597
manually restored in `/etc/kubernetes/manifests`. If for some reason there is no difference between a pre-upgrade
598598
and post-upgrade manifest file for a certain component, a backup file for it will not be written.
599599
-->
600-
`kubeadm-backup-manifests` 包含当前控制面节点的静态 Pod 清单文件的备份版本。
600+
`kubeadm-backup-manifests` 包含当前控制平面节点的静态 Pod 清单文件的备份版本。
601601
如果升级失败并且无法自动回滚,则此文件夹中的内容可以复制到
602602
`/etc/kubernetes/manifests` 目录实现手工恢复。
603603
如果由于某些原因,在升级前后某个组件的清单未发生变化,则 kubeadm 也不会为之生成备份版本。
@@ -635,18 +635,18 @@ these backup files will need to be cleared manually.
635635
- 检查你的集群是否处于可升级状态:
636636
- API 服务器是可访问的
637637
- 所有节点处于 `Ready` 状态
638-
- 控制面是健康的
638+
- 控制平面是健康的
639639
- 强制执行版本偏差策略。
640-
- 确保控制面的镜像是可用的或可拉取到服务器上
640+
- 确保控制平面的镜像是可用的或可拉取到服务器上
641641
- 如果组件配置要求版本升级,则生成替代配置与/或使用用户提供的覆盖版本配置。
642-
- 升级控制面组件或回滚(如果其中任何一个组件无法启动)。
642+
- 升级控制平面组件或回滚(如果其中任何一个组件无法启动)。
643643
- 应用新的 `CoreDNS``kube-proxy` 清单,并强制创建所有必需的 RBAC 规则。
644644
- 如果旧文件在 180 天后过期,将创建 API 服务器的新证书和密钥文件并备份旧文件。
645645

646646
<!--
647647
`kubeadm upgrade node` does the following on additional control plane nodes:
648648
-->
649-
`kubeadm upgrade node` 在其他控制平节点上执行以下操作
649+
`kubeadm upgrade node` 在其他控制平面节点上执行以下操作
650650

651651
<!--
652652
- Fetches the kubeadm `ClusterConfiguration` from the cluster.

0 commit comments

Comments
 (0)