Skip to content

Commit b2d6501

Browse files
authored
Update kubeadm_upgrade_plan.md
1 parent c51ee7e commit b2d6501

File tree

1 file changed

+176
-44
lines changed

1 file changed

+176
-44
lines changed
Lines changed: 176 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,203 @@
11
<!--
22
3+
```
34
### Synopsis
45
6+
57
Check which versions are available to upgrade to and validate whether your current cluster is upgradeable. To skip the internet check, pass in the optional [version] parameter
68
7-
```
9+
```
810
kubeadm upgrade plan [version] [flags]
9-
```
11+
```
1012
1113
### Options
1214
13-
| --allow-experimental-upgrades | |
14-
| ------------------------------------------------------------ | ------------------------------------------------------------ |
15-
| | Show unstable versions of Kubernetes as an upgrade alternative and allow upgrading to an alpha/beta/release candidate versions of Kubernetes. |
16-
| --allow-release-candidate-upgrades | |
17-
| | Show release candidate versions of Kubernetes as an upgrade alternative and allow upgrading to a release candidate versions of Kubernetes. |
18-
| --config string | |
19-
| | Path to a kubeadm configuration file. |
20-
| --feature-gates string | |
21-
| | A set of key=value pairs that describe feature gates for various features. Options are: IPv6DualStack=true\|false (ALPHA - default=false) PublicKeysECDSA=true\|false (ALPHA - default=false) |
22-
| -h, --help | |
23-
| | help for plan |
24-
| --ignore-preflight-errors stringSlice | |
25-
| | A list of checks whose errors will be shown as warnings. Example: 'IsPrivilegedUser,Swap'. Value 'all' ignores errors from all checks. |
26-
| --kubeconfig string Default: "/etc/kubernetes/admin.conf" | |
27-
| | 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. |
28-
| --print-config | |
29-
| | Specifies whether the configuration file that will be used in the upgrade should be printed or not. |
15+
<table style="width: 100%; table-layout: fixed;">
16+
<colgroup>
17+
<col span="1" style="width: 10px;" />
18+
<col span="1" />
19+
</colgroup>
20+
<tbody>
21+
22+
<tr>
23+
<td colspan="2">--allow-experimental-upgrades</td>
24+
</tr>
25+
<tr>
26+
<td></td><td style="line-height: 130%; word-wrap: break-word;">Show unstable versions of Kubernetes as an upgrade alternative and allow upgrading to an alpha/beta/release candidate versions of Kubernetes.</td>
27+
</tr>
28+
29+
<tr>
30+
<td colspan="2">--allow-release-candidate-upgrades</td>
31+
</tr>
32+
<tr>
33+
<td></td><td style="line-height: 130%; word-wrap: break-word;">Show release candidate versions of Kubernetes as an upgrade alternative and allow upgrading to a release candidate versions of Kubernetes.</td>
34+
</tr>
35+
36+
<tr>
37+
<td colspan="2">--config string</td>
38+
</tr>
39+
<tr>
40+
<td></td><td style="line-height: 130%; word-wrap: break-word;">Path to a kubeadm configuration file.</td>
41+
</tr>
42+
43+
<tr>
44+
<td colspan="2">--feature-gates string</td>
45+
</tr>
46+
<tr>
47+
<td></td><td style="line-height: 130%; word-wrap: break-word;">A set of key=value pairs that describe feature gates for various features. Options are:<br/>IPv6DualStack=true|false (ALPHA - default=false)<br/>PublicKeysECDSA=true|false (ALPHA - default=false)</td>
48+
</tr>
49+
50+
<tr>
51+
<td colspan="2">-h, --help</td>
52+
</tr>
53+
<tr>
54+
<td></td><td style="line-height: 130%; word-wrap: break-word;">help for plan</td>
55+
</tr>
56+
57+
<tr>
58+
<td colspan="2">--ignore-preflight-errors stringSlice</td>
59+
</tr>
60+
<tr>
61+
<td></td><td style="line-height: 130%; word-wrap: break-word;">A list of checks whose errors will be shown as warnings. Example: 'IsPrivilegedUser,Swap'. Value 'all' ignores errors from all checks.</td>
62+
</tr>
63+
64+
<tr>
65+
<td colspan="2">--kubeconfig string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes/admin.conf"</td>
66+
</tr>
67+
<tr>
68+
<td></td><td style="line-height: 130%; word-wrap: break-word;">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.</td>
69+
</tr>
70+
71+
<tr>
72+
<td colspan="2">--print-config</td>
73+
</tr>
74+
<tr>
75+
<td></td><td style="line-height: 130%; word-wrap: break-word;">Specifies whether the configuration file that will be used in the upgrade should be printed or not.</td>
76+
</tr>
77+
78+
</tbody>
79+
</table>
80+
81+
3082
3183
### Options inherited from parent commands
3284
33-
| --rootfs string | |
34-
| --------------- | ----------------------------------------------------------- |
35-
| | [EXPERIMENTAL] The path to the 'real' host root filesystem. |
85+
<table style="width: 100%; table-layout: fixed;">
86+
<colgroup>
87+
<col span="1" style="width: 10px;" />
88+
<col span="1" />
89+
</colgroup>
90+
<tbody>
91+
92+
<tr>
93+
<td colspan="2">--rootfs string</td>
94+
</tr>
95+
<tr>
96+
<td></td><td style="line-height: 130%; word-wrap: break-word;">[EXPERIMENTAL] The path to the 'real' host root filesystem.</td>
97+
</tr>
98+
99+
</tbody>
100+
</table>
101+
```
36102
37103
-->
38104

105+
```
39106
### 概述
40107
108+
41109
检查可升级到哪些版本,并验证您当前的集群是否可升级。 要跳过互联网检查,请传递可选的 [version] 参数
42110
43-
```
111+
```
44112
kubeadm upgrade plan [version] [flags]
45-
```
113+
```
46114
47115
### 选项
48116
49-
| --allow-experimental-upgrades | |
50-
| ------------------------------------------------------------ | ------------------------------------------------------------ |
51-
| | 显示不稳定版本的 Kubernetes 作为升级替代方案,并允许升级到 Kubernetes 的 Alpha/Beta/发行候选版本。 |
52-
| --allow-release-candidate-upgrades | |
53-
| | 显示 Kubernetes 的发行候选版本作为升级选择,并允许升级到 Kubernetes 的发行候选版本。 |
54-
| --config string | |
55-
| | 配置文件的路径。 |
56-
| --feature-gates string | |
57-
| | 一组描述各种特征特性门控的键值对。选项有:IPv6DualStack=true\|false (ALPHA - default=false) PublicKeysECDSA=true\|false (ALPHA - default=false) |
58-
| -h, --help | |
59-
| | 帮助 |
60-
| --ignore-preflight-errors stringSlice | |
61-
| | 检查清单,其错误将显示为警告。 例如:“IsPrivilegedUser,Swap”。 值 “all” 忽略所有检查的错误。 |
62-
| --kubeconfig string Default: "/etc/kubernetes/admin.conf" | |
63-
| | 与集群通信时使用的 kubeconfig 文件。 如果标志为未设置,则可以在一组标准位置中搜索现有的 kubeconfig 文件。 |
64-
| --print-config | |
65-
| | 指定是否打印将在升级中使用的配置文件。 |
117+
<table style="width: 100%; table-layout: fixed;">
118+
<colgroup>
119+
<col span="1" style="width: 10px;" />
120+
<col span="1" />
121+
</colgroup>
122+
<tbody>
123+
124+
<tr>
125+
<td colspan="2">--allow-experimental-upgrades</td>
126+
</tr>
127+
<tr>
128+
<td></td><td style="line-height: 130%; word-wrap: break-word;">显示不稳定版本的 Kubernetes 作为升级替代方案,并允许升级到 Kubernetes 的 Alpha/Beta/发行候选版本。</td>
129+
</tr>
130+
131+
<tr>
132+
<td colspan="2">--allow-release-candidate-upgrades</td>
133+
</tr>
134+
<tr>
135+
<td></td><td style="line-height: 130%; word-wrap: break-word;">显示 Kubernetes 的发行候选版本作为升级选择,并允许升级到 Kubernetes 的发行候选版本。</td>
136+
</tr>
137+
138+
<tr>
139+
<td colspan="2">--config string</td>
140+
</tr>
141+
<tr>
142+
<td></td><td style="line-height: 130%; word-wrap: break-word;">配置文件的路径。</td>
143+
</tr>
144+
145+
<tr>
146+
<td colspan="2">--feature-gates string</td>
147+
</tr>
148+
<tr>
149+
<td></td><td style="line-height: 130%; word-wrap: break-word;">一组描述各种特征特性门控的键值对。选项有:IPv6DualStack=true|false (ALPHA - default=false) PublicKeysECDSA=true|false (ALPHA - default=false)</td>
150+
</tr>
151+
152+
<tr>
153+
<td colspan="2">-h, --help</td>
154+
</tr>
155+
<tr>
156+
<td></td><td style="line-height: 130%; word-wrap: break-word;">帮助</td>
157+
</tr>
158+
159+
<tr>
160+
<td colspan="2">--ignore-preflight-errors stringSlice</td>
161+
</tr>
162+
<tr>
163+
<td></td><td style="line-height: 130%; word-wrap: break-word;">检查清单,其错误将显示为警告。 例如:“IsPrivilegedUser,Swap”。 值 “all” 忽略所有检查的错误。</td>
164+
</tr>
165+
166+
<tr>
167+
<td colspan="2">--kubeconfig string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes/admin.conf"</td>
168+
</tr>
169+
<tr>
170+
<td></td><td style="line-height: 130%; word-wrap: break-word;">与集群通信时使用的 kubeconfig 文件。 如果标志为未设置,则可以在一组标准位置中搜索现有的 kubeconfig 文件。</td>
171+
</tr>
172+
173+
<tr>
174+
<td colspan="2">--print-config</td>
175+
</tr>
176+
<tr>
177+
<td></td><td style="line-height: 130%; word-wrap: break-word;">指定是否打印将在升级中使用的配置文件。</td>
178+
</tr>
179+
180+
</tbody>
181+
</table>
182+
183+
66184
67185
### 从父命令继承的选项
68186
69-
| --rootfs string | |
70-
| --------------- | -------------------------------------------- |
71-
| | [EXPERIMENTAL] “真实”主机根文件系统的路径。 |
187+
<table style="width: 100%; table-layout: fixed;">
188+
<colgroup>
189+
<col span="1" style="width: 10px;" />
190+
<col span="1" />
191+
</colgroup>
192+
<tbody>
193+
194+
<tr>
195+
<td colspan="2">--rootfs string</td>
196+
</tr>
197+
<tr>
198+
<td></td><td style="line-height: 130%; word-wrap: break-word;">[EXPERIMENTAL] “真实”主机根文件系统的路径。</td>
199+
</tr>
200+
201+
</tbody>
202+
</table>
203+
```

0 commit comments

Comments
 (0)