|
| 1 | +<!-- |
| 2 | +Run preflight checks before upgrade |
| 3 | +--> |
| 4 | +执行升级前的预检 |
| 5 | + |
| 6 | +<!-- |
| 7 | +### Synopsis |
| 8 | +--> |
| 9 | +### 概要 |
| 10 | + |
| 11 | +<!-- |
| 12 | +Run preflight checks before upgrade |
| 13 | +--> |
| 14 | +执行升级前的预检 |
| 15 | + |
| 16 | +```shell |
| 17 | +kubeadm upgrade apply phase preflight [flags] |
| 18 | +``` |
| 19 | + |
| 20 | +<!-- |
| 21 | +### Options |
| 22 | +--> |
| 23 | +### 选项 |
| 24 | + |
| 25 | +<table style="width: 100%; table-layout: fixed;"> |
| 26 | +<colgroup> |
| 27 | +<col span="1" style="width: 10px;" /> |
| 28 | +<col span="1" /> |
| 29 | +</colgroup> |
| 30 | +<tbody> |
| 31 | + |
| 32 | +<tr> |
| 33 | +<td colspan="2">--allow-experimental-upgrades</td> |
| 34 | +</tr> |
| 35 | +<tr> |
| 36 | +<td></td><td style="line-height: 130%; word-wrap: break-word;"> |
| 37 | +<p> |
| 38 | +<!-- |
| 39 | +Show unstable versions of Kubernetes as an upgrade alternative and allow upgrading to an alpha/beta/release candidate versions of Kubernetes. |
| 40 | +--> |
| 41 | +显示 Kubernetes 的不稳定版本作为升级替代方案,并允许升级到 Kubernetes 的 Alpha、Beta 或 RC 版本。 |
| 42 | +</p> |
| 43 | +</td> |
| 44 | +</tr> |
| 45 | + |
| 46 | +<tr> |
| 47 | +<td colspan="2">--allow-release-candidate-upgrades</td> |
| 48 | +</tr> |
| 49 | +<tr> |
| 50 | +<td></td><td style="line-height: 130%; word-wrap: break-word;"> |
| 51 | +<!-- |
| 52 | +Show release candidate versions of Kubernetes as an upgrade alternative and allow upgrading to a release candidate versions of Kubernetes. |
| 53 | +--> |
| 54 | +<p> |
| 55 | +显示 Kubernetes 的发行候选版本作为升级选择,并允许升级到 Kubernetes 的 RC 版本。 |
| 56 | +</p> |
| 57 | +</td> |
| 58 | +</tr> |
| 59 | + |
| 60 | +<tr> |
| 61 | +<td colspan="2">--config string</td> |
| 62 | +</tr> |
| 63 | +<tr> |
| 64 | +<td></td><td style="line-height: 130%; word-wrap: break-word;"> |
| 65 | +<!-- |
| 66 | +Path to a kubeadm configuration file. |
| 67 | +--> |
| 68 | +<p> |
| 69 | +kubeadm 配置文件的路径。 |
| 70 | +</p> |
| 71 | +</td> |
| 72 | +</tr> |
| 73 | + |
| 74 | + |
| 75 | +<tr> |
| 76 | +<td colspan="2">--dry-run</td> |
| 77 | +</tr> |
| 78 | +<tr> |
| 79 | +<td></td><td style="line-height: 130%; word-wrap: break-word;"> |
| 80 | +<p> |
| 81 | +<!-- |
| 82 | +Do not change any state, just output the actions that would be performed. |
| 83 | +--> |
| 84 | +不改变任何状态,只输出将要执行的操作。 |
| 85 | +</p> |
| 86 | +</td> |
| 87 | +</tr> |
| 88 | + |
| 89 | +<tr> |
| 90 | +<td colspan="2">-f, --force</td> |
| 91 | +</tr> |
| 92 | +<tr> |
| 93 | +<td></td><td style="line-height: 130%; word-wrap: break-word;"> |
| 94 | +<p> |
| 95 | +<!-- |
| 96 | +Force upgrading although some requirements might not be met. This also implies non-interactive mode. |
| 97 | +--> |
| 98 | +强制升级,但可能无法满足某些要求。这一选项也意味着升级过程是非交互式的。 |
| 99 | +</p> |
| 100 | +</td> |
| 101 | +</tr> |
| 102 | + |
| 103 | +<tr> |
| 104 | +<td colspan="2">-h, --help</td> |
| 105 | +</tr> |
| 106 | +<tr> |
| 107 | +<td></td><td style="line-height: 130%; word-wrap: break-word;"> |
| 108 | +<!-- |
| 109 | +help for preflight |
| 110 | +--> |
| 111 | +<p> |
| 112 | +preflight 操作的帮助命令。 |
| 113 | +</p> |
| 114 | +</td> |
| 115 | +</tr> |
| 116 | + |
| 117 | +<tr> |
| 118 | +<td colspan="2">--ignore-preflight-errors strings</td> |
| 119 | +</tr> |
| 120 | +<tr> |
| 121 | +<td></td><td style="line-height: 130%; word-wrap: break-word;"> |
| 122 | +<!-- |
| 123 | +A list of checks whose errors will be shown as warnings. Example: 'IsPrivilegedUser,Swap'. Value 'all' ignores errors from all checks. |
| 124 | +--> |
| 125 | +<p> |
| 126 | +其错误将显示为警告的检查列表。例如:'IsPrivilegedUser,Swap'。值 'all' 忽略所有检查错误。 |
| 127 | +</p> |
| 128 | +</td> |
| 129 | +</tr> |
| 130 | + |
| 131 | +<tr> |
| 132 | +<td colspan="2"> |
| 133 | +<!-- |
| 134 | +--kubeconfig string Default: "/etc/kubernetes/admin.conf" |
| 135 | +--> |
| 136 | +--kubeconfig string 默认值: "/etc/kubernetes/admin.conf" |
| 137 | +</td> |
| 138 | +</tr> |
| 139 | +<tr> |
| 140 | +<td></td><td style="line-height: 130%; word-wrap: break-word;"> |
| 141 | +<p> |
| 142 | +<!-- |
| 143 | +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. |
| 144 | +--> |
| 145 | +用于和集群通信的 KubeConfig 文件。如果它没有被设置,那么 kubeadm 将会搜索一个已经存在于标准路径的 KubeConfig 文件。 |
| 146 | +</p> |
| 147 | +</td> |
| 148 | +</tr> |
| 149 | + |
| 150 | +<tr> |
| 151 | +<td colspan="2">-y, --yes</td> |
| 152 | +</tr> |
| 153 | +<tr> |
| 154 | +<td></td><td style="line-height: 130%; word-wrap: break-word;"> |
| 155 | +<p> |
| 156 | +<!-- |
| 157 | +Perform the upgrade and do not prompt for confirmation (non-interactive mode). |
| 158 | +--> |
| 159 | +执行升级,不提示用户确认(非交互模式)。 |
| 160 | +</p> |
| 161 | +</td> |
| 162 | +</tr> |
| 163 | + |
| 164 | +</tbody> |
| 165 | +</table> |
| 166 | + |
| 167 | + |
| 168 | +<!-- |
| 169 | +### Options inherited from parent commands |
| 170 | +--> |
| 171 | +### 从父命令继承的选项 |
| 172 | + |
| 173 | + |
| 174 | +<table style="width: 100%; table-layout: fixed;"> |
| 175 | +<colgroup> |
| 176 | +<col span="1" style="width: 10px;" /> |
| 177 | +<col span="1" /> |
| 178 | +</colgroup> |
| 179 | +<tbody> |
| 180 | + |
| 181 | +<tr> |
| 182 | +<td colspan="2">--rootfs string</td> |
| 183 | +</tr> |
| 184 | +<tr> |
| 185 | +<td></td><td style="line-height: 130%; word-wrap: break-word;"><p> |
| 186 | +<!-- |
| 187 | +The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
| 188 | +--> |
| 189 | +到“真实”主机根文件系统的路径。设置此参数将导致 kubeadm 切换到所提供的路径。 |
| 190 | +</p> |
| 191 | +</td> |
| 192 | +</tr> |
| 193 | + |
| 194 | +</tbody> |
| 195 | +</table> |
0 commit comments