Skip to content

Commit ddbc935

Browse files
authored
Merge pull request #47695 from windsonsea/upgyhf
Sync kubeadm-upgrade and kubeadm-upgrade-phase and its dependencies
2 parents 4fd9111 + a0c31a2 commit ddbc935

11 files changed

+53
-54
lines changed

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ kubeadm upgrade apply [version]
3434
</tr>
3535
<tr>
3636
<td></td><td style="line-height: 130%; word-wrap: break-word;">
37+
<p>
3738
<!--
3839
Show unstable versions of Kubernetes as an upgrade alternative and allow upgrading to an alpha/beta/release candidate versions of Kubernetes.
3940
-->
40-
<p>
4141
显示 Kubernetes 的不稳定版本作为升级替代方案,并允许升级到 Kubernetes 的 Alpha、Beta 或 RC 版本。
4242
</p>
4343
</td>
@@ -48,10 +48,10 @@ Show unstable versions of Kubernetes as an upgrade alternative and allow upgradi
4848
</tr>
4949
<tr>
5050
<td></td><td style="line-height: 130%; word-wrap: break-word;">
51+
<p>
5152
<!--
5253
Show release candidate versions of Kubernetes as an upgrade alternative and allow upgrading to a release candidate versions of Kubernetes.
5354
-->
54-
<p>
5555
显示 Kubernetes 的候选版本作为升级替代方案,并允许升级到 Kubernetes 的 RC 版本。
5656
</p>
5757
</td>
@@ -62,10 +62,10 @@ Show release candidate versions of Kubernetes as an upgrade alternative and allo
6262
</tr>
6363
<tr>
6464
<td></td><td style="line-height: 130%; word-wrap: break-word;">
65+
<p>
6566
<!--
6667
Perform the renewal of certificates used by component changed during upgrades.
6768
-->
68-
<p>
6969
执行升级期间更改的组件所使用的证书的更新。
7070
</p>
7171
</td>
@@ -76,10 +76,10 @@ Perform the renewal of certificates used by component changed during upgrades.
7676
</tr>
7777
<tr>
7878
<td></td><td style="line-height: 130%; word-wrap: break-word;">
79+
<p>
7980
<!--
8081
Path to a kubeadm configuration file.
8182
-->
82-
<p>
8383
kubeadm 配置文件的路径。
8484
</p>
8585
</td>
@@ -90,10 +90,10 @@ kubeadm 配置文件的路径。
9090
</tr>
9191
<tr>
9292
<td></td><td style="line-height: 130%; word-wrap: break-word;">
93+
<p>
9394
<!--
9495
Do not change any state, just output what actions would be performed.
9596
-->
96-
<p>
9797
不要更改任何状态,只输出要执行的操作。
9898
</p>
9999
</td>
@@ -109,10 +109,10 @@ Do not change any state, just output what actions would be performed.
109109
</tr>
110110
<tr>
111111
<td></td><td style="line-height: 130%; word-wrap: break-word;">
112+
<p>
112113
<!--
113114
Perform the upgrade of etcd.
114115
-->
115-
<p>
116116
执行 etcd 的升级。
117117
</p>
118118
</td>
@@ -123,6 +123,7 @@ Perform the upgrade of etcd.
123123
</tr>
124124
<tr>
125125
<td></td><td style="line-height: 130%; word-wrap: break-word;">
126+
<p>
126127
<!--
127128
A set of key=value pairs that describe feature gates for various features. Options are:<br/>
128129
EtcdLearnerMode=true|false (BETA - default=true)<br/>
@@ -131,7 +132,6 @@ RootlessControlPlane=true|false (ALPHA - default=false)<br/>
131132
UpgradeAddonsBeforeControlPlane=true|false (DEPRECATED - default=false)<br/>
132133
WaitForAllControlPlaneComponents=true|false (ALPHA - default=false)
133134
-->
134-
<p>
135135
一组键值对,用于描述各种功能。选项包括:<br/>
136136
EtcdLearnerMode=true|false (ALPHA - 默认值=false)<br/>
137137
PublicKeysECDSA=true|false (BETA - 默认值=true)<br/>
@@ -147,10 +147,10 @@ WaitForAllControlPlaneComponents=true|false (ALPHA - 默认值=false)
147147
</tr>
148148
<tr>
149149
<td></td><td style="line-height: 130%; word-wrap: break-word;">
150+
<p>
150151
<!--
151152
Force upgrading although some requirements might not be met. This also implies non-interactive mode.
152153
-->
153-
<p>
154154
强制升级,但可能无法满足某些要求。这也意味着非交互模式。
155155
</p>
156156
</td>
@@ -161,10 +161,10 @@ Force upgrading although some requirements might not be met. This also implies n
161161
</tr>
162162
<tr>
163163
<td></td><td style="line-height: 130%; word-wrap: break-word;">
164+
<p>
164165
<!--
165166
help for apply
166167
-->
167-
<p>
168168
apply 操作的帮助命令。
169169
</p>
170170
</td>
@@ -175,10 +175,10 @@ apply 操作的帮助命令。
175175
</tr>
176176
<tr>
177177
<td></td><td style="line-height: 130%; word-wrap: break-word;">
178+
<p>
178179
<!--
179180
A list of checks whose errors will be shown as warnings. Example: 'IsPrivilegedUser,Swap'. Value 'all' ignores errors from all checks.
180181
-->
181-
<p>
182182
错误将显示为警告的检查列表;例如:'IsPrivilegedUser,Swap'。取值为 'all' 时将忽略检查中的所有错误。
183183
</p>
184184
</td>
@@ -194,10 +194,10 @@ A list of checks whose errors will be shown as warnings. Example: 'IsPrivilegedU
194194
</tr>
195195
<tr>
196196
<td></td><td style="line-height: 130%; word-wrap: break-word;">
197+
<p>
197198
<!--
198199
The kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations can be searched for an existing kubeconfig file.
199200
-->
200-
<p>
201201
与集群通信时使用的 kubeconfig 文件。如果未设置标志,则在相关目录下搜索以查找现有 kubeconfig 文件。
202202
</p>
203203
</td>
@@ -208,10 +208,10 @@ The kubeconfig file to use when talking to the cluster. If the flag is not set,
208208
</tr>
209209
<tr>
210210
<td></td><td style="line-height: 130%; word-wrap: break-word;">
211+
<p>
211212
<!--
212213
Path to a directory that contains files named &quot;target[suffix][+patchtype].extension&quot;. For example, &quot;kube-apiserver0+merge.yaml&quot; or just &quot;etcd.json&quot;. &quot;target&quot; can be one of &quot;kube-apiserver&quot;, &quot;kube-controller-manager&quot;, &quot;kube-scheduler&quot;, &quot;etcd&quot;, &quot;kubeletconfiguration&quot;. &quot;patchtype&quot; can be one of &quot;strategic&quot;, &quot;merge&quot; or &quot;json&quot; and they match the patch formats supported by kubectl. The default &quot;patchtype&quot; is &quot;strategic&quot;. &quot;extension&quot; must be either &quot;json&quot; or &quot;yaml&quot;. &quot;suffix&quot; is an optional string that can be used to determine which patches are applied first alpha-numerically.
213214
-->
214-
<p>
215215
包含名为 &quot;target[suffix][+patchtype].extension&quot; 的文件的目录的路径。
216216
例如,&quot;kube-apiserver0+merge.yaml&quot;或是简单的 &quot;etcd.json&quot;
217217
&quot;target&quot; 可以是 &quot;kube-apiserver&quot;&quot;kube-controller-manager&quot;&quot;kube-scheduler&quot;&quot;etcd&quot;&quot;kubeletconfiguration&quot; 之一。
@@ -229,10 +229,10 @@ Path to a directory that contains files named &quot;target[suffix][+patchtype].e
229229
</tr>
230230
<tr>
231231
<td></td><td style="line-height: 130%; word-wrap: break-word;">
232+
<p>
232233
<!--
233234
Specifies whether the configuration file that will be used in the upgrade should be printed or not.
234235
-->
235-
<p>
236236
指定是否应打印将在升级中使用的配置文件。
237237
</p>
238238
</td>
@@ -243,10 +243,10 @@ Specifies whether the configuration file that will be used in the upgrade should
243243
</tr>
244244
<tr>
245245
<td></td><td style="line-height: 130%; word-wrap: break-word;">
246+
<p>
246247
<!--
247248
Perform the upgrade and do not prompt for confirmation (non-interactive mode).
248249
-->
249-
<p>
250250
执行升级,不提示确认(非交互模式)。
251251
</p>
252252
</td>
@@ -272,10 +272,10 @@ Perform the upgrade and do not prompt for confirmation (non-interactive mode).
272272
</tr>
273273
<tr>
274274
<td></td><td style="line-height: 130%; word-wrap: break-word;">
275+
<p>
275276
<!--
276277
[EXPERIMENTAL] The path to the 'real' host root filesystem.
277278
-->
278-
<p>
279279
[实验] 指向 '真实' 宿主机根文件系统的路径。
280280
</p>
281281
</td>

content/zh-cn/docs/reference/setup-tools/kubeadm/generated/kubeadm_upgrade_diff.md renamed to content/zh-cn/docs/reference/setup-tools/kubeadm/generated/kubeadm_upgrade/kubeadm_upgrade_diff.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,10 @@ Show what differences would be applied to existing static pod manifests. See als
77
### Synopsis
88
99
Show what differences would be applied to existing static pod manifests. See also: kubeadm upgrade apply --dry-run
10-
11-
```
12-
kubeadm upgrade diff [version] [flags]
13-
```
1410
-->
15-
### 概述
11+
### 概要
1612

17-
显示哪些差异将被应用于现有的静态 Pod 资源清单。参考:kubeadm upgrade apply --dry-run
13+
显示哪些差异将被应用于现有的静态 Pod 资源清单。另请参考:kubeadm upgrade apply --dry-run
1814

1915
```
2016
kubeadm upgrade diff [version] [flags]

content/zh-cn/docs/reference/setup-tools/kubeadm/generated/kubeadm_upgrade_node_phase_kubelet-config.md renamed to content/zh-cn/docs/reference/setup-tools/kubeadm/generated/kubeadm_upgrade/kubeadm_upgrade_node_phase_kubelet-config.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ kubeadm upgrade node phase kubelet-config [flags]
3434
</tr>
3535
<tr>
3636
<td></td><td style="line-height: 130%; word-wrap: break-word;">
37+
<p>
3738
<!--
3839
Do not change any state, just output the actions that would be performed.
3940
-->
40-
<p>
4141
不改变任何状态,只输出将要执行的操作。
4242
</p>
4343
</td>
@@ -48,10 +48,10 @@ Do not change any state, just output the actions that would be performed.
4848
</tr>
4949
<tr>
5050
<td></td><td style="line-height: 130%; word-wrap: break-word;">
51+
<p>
5152
<!--
5253
help for kubelet-config
5354
-->
54-
<p>
5555
kubelet-config 操作的帮助命令。
5656
</p>
5757
</td>
@@ -67,10 +67,10 @@ kubelet-config 操作的帮助命令。
6767
</tr>
6868
<tr>
6969
<td></td><td style="line-height: 130%; word-wrap: break-word;">
70+
<p>
7071
<!--
7172
The kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations can be searched for an existing kubeconfig file.
7273
-->
73-
<p>
7474
用于和集群通信的 kubeconfig 文件。如果它没有被设置,那么 kubeadm 将会搜索一个已经存在于标准路径的 kubeconfig 文件。
7575
</p>
7676
</td>
@@ -113,10 +113,10 @@ Path to a directory that contains files named &quot;target[suffix][+patchtype].e
113113
</tr>
114114
<tr>
115115
<td></td><td style="line-height: 130%; word-wrap: break-word;">
116+
<p>
116117
<!--
117118
[EXPERIMENTAL] The path to the 'real' host root filesystem.
118119
-->
119-
<p>
120120
[实验] 到'真实'主机根文件系统的路径。
121121
</p>
122122
</td>

content/zh-cn/docs/reference/setup-tools/kubeadm/kubeadm-upgrade-phase.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,33 @@ title: kubeadm upgrade phase
33
weight: 90
44
content_type: concept
55
---
6+
67
<!--
78
In v1.15.0, kubeadm introduced preliminary support for `kubeadm upgrade node` phases.
89
Phases for other `kubeadm upgrade` sub-commands such as `apply`, could be added in the
910
following releases.
1011
-->
11-
12-
在 Kubernetes v1.15.0 版本中,kubeadm 引入了对 `kubeadm upgrade node` 阶段的初步支持。其他 `kubeadm upgrade` 子命令如 `apply` 等阶段将在未来发行版中添加。
12+
在 Kubernetes v1.15.0 版本中,kubeadm 引入了对 `kubeadm upgrade node` 阶段的初步支持。
13+
其他 `kubeadm upgrade` 子命令如 `apply` 等阶段将在未来发行版中添加。
1314

1415
<!--
1516
## kubeadm upgrade node phase {#cmd-node-phase}
1617
-->
17-
18-
## kubeadm upgrade node phase {#cmd-node-phase}
18+
## kubeadm upgrade node 阶段 {#cmd-node-phase}
1919

2020
<!--
2121
Using this phase you can choose to execute the separate steps of the upgrade of
2222
secondary control-plane or worker nodes. Please note that `kubeadm upgrade apply` still has to
2323
be called on a primary control-plane node.
2424
-->
25-
26-
使用此阶段,可以选择执行辅助控制平面或工作节点升级的单独步骤。请注意,`kubeadm upgrade apply` 命令仍然必须在主控制平面节点上调用。
25+
使用此阶段,你可以选择执行辅助控制平面或工作节点升级的单独步骤。
26+
请注意,`kubeadm upgrade apply` 命令仍然必须在主控制平面节点上调用。
2727

2828
{{< tabs name="tab-phase" >}}
29-
{{< tab name="phase" include="generated/kubeadm_upgrade_node_phase.md" />}}
30-
{{< tab name="preflight" include="generated/kubeadm_upgrade_node_phase_preflight.md" />}}
31-
{{< tab name="control-plane" include="generated/kubeadm_upgrade_node_phase_control-plane.md" />}}
32-
{{< tab name="kubelet-config" include="generated/kubeadm_upgrade_node_phase_kubelet-config.md" />}}
29+
{{< tab name="phase" include="generated/kubeadm_upgrade/kubeadm_upgrade_node_phase.md" />}}
30+
{{< tab name="preflight" include="generated/kubeadm_upgrade/kubeadm_upgrade_node_phase_preflight.md" />}}
31+
{{< tab name="control-plane" include="generated/kubeadm_upgrade/kubeadm_upgrade_node_phase_control-plane.md" />}}
32+
{{< tab name="kubelet-config" include="generated/kubeadm_upgrade/kubeadm_upgrade_node_phase_kubelet-config.md" />}}
3333
{{< /tabs >}}
3434

3535
## {{% heading "whatsnext" %}}
@@ -43,6 +43,7 @@ be called on a primary control-plane node.
4343
-->
4444
* [kubeadm init](/zh-cn/docs/reference/setup-tools/kubeadm/kubeadm-init/) 引导一个 Kubernetes 控制平面节点
4545
* [kubeadm join](/zh-cn/docs/reference/setup-tools/kubeadm/kubeadm-join/) 将节点加入到集群
46-
* [kubeadm reset](/zh-cn/docs/reference/setup-tools/kubeadm/kubeadm-reset/) 还原 `kubeadm init``kubeadm join` 命令对主机所做的任何更改
46+
* [kubeadm reset](/zh-cn/docs/reference/setup-tools/kubeadm/kubeadm-reset/) 还原 `kubeadm init`
47+
`kubeadm join` 命令对主机所做的任何更改
4748
* [kubeadm upgrade](/zh-cn/docs/reference/setup-tools/kubeadm/kubeadm-upgrade/) 升级 kubeadm 节点
4849
* [kubeadm alpha](/zh-cn/docs/reference/setup-tools/kubeadm/kubeadm-alpha/) 尝试实验性功能

0 commit comments

Comments
 (0)