|
| 1 | + |
| 2 | +<!-- |
| 3 | +Read a file containing the kubeadm configuration API and report any validation problems |
| 4 | +--> |
| 5 | +读取包含 kubeadm 配置 API 的文件,并报告所有验证问题。 |
| 6 | + |
| 7 | +<!-- |
| 8 | +### Synopsis |
| 9 | +--> |
| 10 | +### 概要 |
| 11 | + |
| 12 | +<!-- |
| 13 | +This command lets you validate a kubeadm configuration API file and report any warnings and errors. |
| 14 | +If there are no errors the exit status will be zero, otherwise it will be non-zero. |
| 15 | +Any unmarshaling problems such as unknown API fields will trigger errors. Unknown API versions and |
| 16 | +fields with invalid values will also trigger errors. Any other errors or warnings may be reported |
| 17 | +depending on contents of the input file. |
| 18 | +--> |
| 19 | +这个命令允许你验证 kubeadm 配置 API 文件并报告所有警告和错误。 |
| 20 | +如果没有错误,退出状态将为零;否则,将为非零。 |
| 21 | +诸如未知 API 字段等任何解包问题都会触发错误。 |
| 22 | +未知的 API 版本和具有无效值的字段也会触发错误。 |
| 23 | +根据输入文件的内容,可能会报告任何其他错误或警告。 |
| 24 | + |
| 25 | +<!-- |
| 26 | +In this version of kubeadm, the following API versions are supported: |
| 27 | +--> |
| 28 | +在这个版本的 kubeadm 中,支持以下 API 版本: |
| 29 | + |
| 30 | +- kubeadm.k8s.io/v1beta3 |
| 31 | + |
| 32 | +``` |
| 33 | +kubeadm config validate [flags] |
| 34 | +``` |
| 35 | + |
| 36 | +<!-- |
| 37 | +### Options |
| 38 | +--> |
| 39 | +### 选项 |
| 40 | + |
| 41 | + <table style="width: 100%; table-layout: fixed;"> |
| 42 | +<colgroup> |
| 43 | +<col span="1" style="width: 10px;" /> |
| 44 | +<col span="1" /> |
| 45 | +</colgroup> |
| 46 | +<tbody> |
| 47 | + |
| 48 | +<tr> |
| 49 | +<td colspan="2">--allow-experimental-api</td> |
| 50 | +</tr> |
| 51 | +<tr> |
| 52 | +<td></td><td style="line-height: 130%; word-wrap: break-word;"> |
| 53 | +<p> |
| 54 | +<!-- |
| 55 | +Allow validation of experimental, unreleased APIs. |
| 56 | +--> |
| 57 | +允许验证试验性的、未发布的 API。 |
| 58 | +</p> |
| 59 | +</td> |
| 60 | +</tr> |
| 61 | + |
| 62 | +<tr> |
| 63 | +<td colspan="2">--config string</td> |
| 64 | +</tr> |
| 65 | +<tr> |
| 66 | +<td></td><td style="line-height: 130%; word-wrap: break-word;"> |
| 67 | +<p> |
| 68 | +<!-- |
| 69 | +Path to a kubeadm configuration file. |
| 70 | +--> |
| 71 | +指向 kubeadm 配置文件的路径。 |
| 72 | +</p> |
| 73 | +</td> |
| 74 | +</tr> |
| 75 | + |
| 76 | +<tr> |
| 77 | +<td colspan="2">-h, --help</td> |
| 78 | +</tr> |
| 79 | +<tr> |
| 80 | +<td></td><td style="line-height: 130%; word-wrap: break-word;"> |
| 81 | +<p> |
| 82 | +<!-- |
| 83 | +help for validate |
| 84 | +--> |
| 85 | +validate 的帮助命令。 |
| 86 | +</p> |
| 87 | +</td> |
| 88 | +</tr> |
| 89 | + |
| 90 | +</tbody> |
| 91 | +</table> |
| 92 | + |
| 93 | +<!-- |
| 94 | +### Options inherited from parent commands |
| 95 | +--> |
| 96 | +### 从父命令继承而来的选项 |
| 97 | + |
| 98 | + <table style="width: 100%; table-layout: fixed;"> |
| 99 | +<colgroup> |
| 100 | +<col span="1" style="width: 10px;" /> |
| 101 | +<col span="1" /> |
| 102 | +</colgroup> |
| 103 | +<tbody> |
| 104 | + |
| 105 | +<tr> |
| 106 | +<!-- |
| 107 | +<td colspan="2">--kubeconfig string Default: "/etc/kubernetes/admin.conf"</td> |
| 108 | +--> |
| 109 | +<td colspan="2">--kubeconfig string 默认值:"/etc/kubernetes/admin.conf"</td> |
| 110 | +</tr> |
| 111 | +<tr> |
| 112 | +<td></td><td style="line-height: 130%; word-wrap: break-word;"> |
| 113 | +<p> |
| 114 | +<!-- |
| 115 | +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. |
| 116 | +--> |
| 117 | +在与集群通信时要使用的 kubeconfig 文件。 |
| 118 | +如果此标志未被设置,则会在一组标准位置中搜索现有的 kubeconfig 文件。 |
| 119 | +</p> |
| 120 | +</td> |
| 121 | +</tr> |
| 122 | + |
| 123 | +<tr> |
| 124 | +<td colspan="2">--rootfs string</td> |
| 125 | +</tr> |
| 126 | +<tr> |
| 127 | +<td></td><td style="line-height: 130%; word-wrap: break-word;"> |
| 128 | +<p> |
| 129 | +<!-- |
| 130 | +[EXPERIMENTAL] The path to the 'real' host root filesystem. |
| 131 | +--> |
| 132 | +[试验性] 指向“真实”主机根文件系统的路径。 |
| 133 | +</p> |
| 134 | +</td> |
| 135 | +</tr> |
| 136 | + |
| 137 | +</tbody> |
| 138 | +</table> |
0 commit comments