Skip to content

Commit 58ab063

Browse files
authored
Merge pull request #49084 from my-git9/pp-23597
[zh-cn]sync kubeadm_upgrade_apply
2 parents c48b27c + dfc4fce commit 58ab063

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

content/zh-cn/docs/reference/setup-tools/kubeadm/generated/kubeadm_upgrade/kubeadm_upgrade_apply.md

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,48 @@ Upgrade your Kubernetes cluster to the specified version
1313
-->
1414
将 Kubernetes 集群升级到指定版本。
1515

16-
```
16+
```shell
1717
kubeadm upgrade apply [version]
1818
```
1919

20+
<!--
21+
The "apply [version]" command executes the following phases:
22+
```
23+
preflight Run preflight checks before upgrade
24+
control-plane Upgrade the control plane
25+
upload-config Upload the kubeadm and kubelet configurations to ConfigMaps
26+
/kubeadm Upload the kubeadm ClusterConfiguration to a ConfigMap
27+
/kubelet Upload the kubelet configuration to a ConfigMap
28+
kubelet-config Upgrade the kubelet configuration for this node
29+
bootstrap-token Configures bootstrap token and cluster-info RBAC rules
30+
addon Upgrade the default kubeadm addons
31+
/coredns Upgrade the CoreDNS addon
32+
/kube-proxy Upgrade the kube-proxy addon
33+
post-upgrade Run post upgrade tasks
34+
```
35+
-->
36+
`apply [version]` 命令执行以下阶段:
37+
38+
```
39+
preflight 在升级前运行预检
40+
control-plane 升级控制平面
41+
upload-config 将 kubeadm 和 kubelet 配置上传到 ConfigMap
42+
/kubeadm 将 kubeadm ClusterConfiguration 上传到 ConfigMap
43+
/kubelet 将 kubelet 配置上传到 ConfigMap
44+
kubelet-config 升级此节点的 kubelet 配置
45+
bootstrap-token 配置启动引导令牌和 cluster-info RBAC 规则
46+
addon 升级默认的 kubeadm 插件
47+
/coredns 升级 CoreDNS 插件
48+
/kube-proxy 升级 kube-proxy 插件
49+
post-upgrade 运行升级后的任务
50+
```
51+
2052
<!--
2153
### Options
2254
-->
2355
### 选项
2456

25-
<table style="width: 100%; table-layout: fixed;">
57+
<table style="width: 100%; table-layout: fixed;">
2658
<colgroup>
2759
<col span="1" style="width: 10px;" />
2860
<col span="1" />

0 commit comments

Comments
 (0)