Update kubeadm_upgrade_plan.md

This commit is contained in:
jiazxjason
2020-07-02 16:49:01 +08:00
committed by GitHub
parent c51ee7ef9c
commit b2d650152a
@@ -1,71 +1,203 @@
<!-- <!--
```
### Synopsis ### Synopsis
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 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
``` ```
kubeadm upgrade plan [version] [flags] kubeadm upgrade plan [version] [flags]
``` ```
### Options ### Options
| --allow-experimental-upgrades | | <table style="width: 100%; table-layout: fixed;">
| ------------------------------------------------------------ | ------------------------------------------------------------ | <colgroup>
| | Show unstable versions of Kubernetes as an upgrade alternative and allow upgrading to an alpha/beta/release candidate versions of Kubernetes. | <col span="1" style="width: 10px;" />
| --allow-release-candidate-upgrades | | <col span="1" />
| | Show release candidate versions of Kubernetes as an upgrade alternative and allow upgrading to a release candidate versions of Kubernetes. | </colgroup>
| --config string | | <tbody>
| | Path to a kubeadm configuration file. |
| --feature-gates string | | <tr>
| | 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) | <td colspan="2">--allow-experimental-upgrades</td>
| -h, --help | | </tr>
| | help for plan | <tr>
| --ignore-preflight-errors stringSlice | | <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>
| | A list of checks whose errors will be shown as warnings. Example: 'IsPrivilegedUser,Swap'. Value 'all' ignores errors from all checks. | </tr>
| --kubeconfig string Default: "/etc/kubernetes/admin.conf" | |
| | 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. | <tr>
| --print-config | | <td colspan="2">--allow-release-candidate-upgrades</td>
| | Specifies whether the configuration file that will be used in the upgrade should be printed or not. | </tr>
<tr>
<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>
</tr>
<tr>
<td colspan="2">--config string</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">Path to a kubeadm configuration file.</td>
</tr>
<tr>
<td colspan="2">--feature-gates string</td>
</tr>
<tr>
<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>
</tr>
<tr>
<td colspan="2">-h, --help</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">help for plan</td>
</tr>
<tr>
<td colspan="2">--ignore-preflight-errors stringSlice</td>
</tr>
<tr>
<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>
</tr>
<tr>
<td colspan="2">--kubeconfig string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes/admin.conf"</td>
</tr>
<tr>
<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>
</tr>
<tr>
<td colspan="2">--print-config</td>
</tr>
<tr>
<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>
</tr>
</tbody>
</table>
### Options inherited from parent commands ### Options inherited from parent commands
| --rootfs string | | <table style="width: 100%; table-layout: fixed;">
| --------------- | ----------------------------------------------------------- | <colgroup>
| | [EXPERIMENTAL] The path to the 'real' host root filesystem. | <col span="1" style="width: 10px;" />
<col span="1" />
</colgroup>
<tbody>
<tr>
<td colspan="2">--rootfs string</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">[EXPERIMENTAL] The path to the 'real' host root filesystem.</td>
</tr>
</tbody>
</table>
```
--> -->
```
### 概述 ### 概述
检查可升级到哪些版本,并验证您当前的集群是否可升级。 要跳过互联网检查,请传递可选的 [version] 参数 检查可升级到哪些版本,并验证您当前的集群是否可升级。 要跳过互联网检查,请传递可选的 [version] 参数
``` ```
kubeadm upgrade plan [version] [flags] kubeadm upgrade plan [version] [flags]
``` ```
### 选项 ### 选项
| --allow-experimental-upgrades | | <table style="width: 100%; table-layout: fixed;">
| ------------------------------------------------------------ | ------------------------------------------------------------ | <colgroup>
| | 显示不稳定版本的 Kubernetes 作为升级替代方案,并允许升级到 Kubernetes 的 Alpha/Beta/发行候选版本。 | <col span="1" style="width: 10px;" />
| --allow-release-candidate-upgrades | | <col span="1" />
| | 显示 Kubernetes 的发行候选版本作为升级选择,并允许升级到 Kubernetes 的发行候选版本。 | </colgroup>
| --config string | | <tbody>
| | 配置文件的路径。 |
| --feature-gates string | | <tr>
| | 一组描述各种特征特性门控的键值对。选项有:IPv6DualStack=true\|false (ALPHA - default=false) PublicKeysECDSA=true\|false (ALPHA - default=false) | <td colspan="2">--allow-experimental-upgrades</td>
| -h, --help | | </tr>
| | 帮助 | <tr>
| --ignore-preflight-errors stringSlice | | <td></td><td style="line-height: 130%; word-wrap: break-word;">显示不稳定版本的 Kubernetes 作为升级替代方案,并允许升级到 Kubernetes 的 Alpha/Beta/发行候选版本。</td>
| | 检查清单,其错误将显示为警告。 例如:“IsPrivilegedUserSwap”。 值 “all” 忽略所有检查的错误。 | </tr>
| --kubeconfig string Default: "/etc/kubernetes/admin.conf" | |
| | 与集群通信时使用的 kubeconfig 文件。 如果标志为未设置,则可以在一组标准位置中搜索现有的 kubeconfig 文件。 | <tr>
| --print-config | | <td colspan="2">--allow-release-candidate-upgrades</td>
| | 指定是否打印将在升级中使用的配置文件。 | </tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">显示 Kubernetes 的发行候选版本作为升级选择,并允许升级到 Kubernetes 的发行候选版本。</td>
</tr>
<tr>
<td colspan="2">--config string</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">配置文件的路径。</td>
</tr>
<tr>
<td colspan="2">--feature-gates string</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">一组描述各种特征特性门控的键值对。选项有:IPv6DualStack=true|false (ALPHA - default=false) PublicKeysECDSA=true|false (ALPHA - default=false)</td>
</tr>
<tr>
<td colspan="2">-h, --help</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">帮助</td>
</tr>
<tr>
<td colspan="2">--ignore-preflight-errors stringSlice</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">检查清单,其错误将显示为警告。 例如:“IsPrivilegedUserSwap”。 值 “all” 忽略所有检查的错误。</td>
</tr>
<tr>
<td colspan="2">--kubeconfig string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes/admin.conf"</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">与集群通信时使用的 kubeconfig 文件。 如果标志为未设置,则可以在一组标准位置中搜索现有的 kubeconfig 文件。</td>
</tr>
<tr>
<td colspan="2">--print-config</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">指定是否打印将在升级中使用的配置文件。</td>
</tr>
</tbody>
</table>
### 从父命令继承的选项 ### 从父命令继承的选项
| --rootfs string | | <table style="width: 100%; table-layout: fixed;">
| --------------- | -------------------------------------------- | <colgroup>
| | [EXPERIMENTAL] “真实”主机根文件系统的路径。 | <col span="1" style="width: 10px;" />
<col span="1" />
</colgroup>
<tbody>
<tr>
<td colspan="2">--rootfs string</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">[EXPERIMENTAL] “真实”主机根文件系统的路径。</td>
</tr>
</tbody>
</table>
```