ZH-trans: add kubeadm_alpha_phase_upload-config.md (#11971)
* Create kubeadm_alpha_phase_upload-config.md * Update kubeadm_alpha_phase_upload-config.md * Update kubeadm_alpha_phase_upload-config.md
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
fac84ef1af
commit
5c6f031e6f
+124
@@ -0,0 +1,124 @@
|
||||
|
||||
将当前使用的 kubeadm 配置上传到 ConfigMap
|
||||
<!--
|
||||
Uploads the currently used configuration for kubeadm to a ConfigMap
|
||||
-->
|
||||
|
||||
<!--
|
||||
### Synopsis
|
||||
-->
|
||||
|
||||
### 概要
|
||||
|
||||
<!--
|
||||
Uploads the kubeadm init configuration of your cluster to a ConfigMap called kubeadm-config in the kube-system namespace. This enables correct configuration of system components and a seamless user experience when upgrading.
|
||||
-->
|
||||
将集群 kubeadm init 配置上传到 kube 系统命名空间中名为 kubeadm-config 的 ConfigMap 中。这可以正确配置系统组件,并在升级时提供无缝的用户体验。
|
||||
|
||||
<!--
|
||||
Alternatively, you can use kubeadm config.
|
||||
-->
|
||||
或者您可以使用 kubeadm 配置。
|
||||
|
||||
<!--
|
||||
Alpha Disclaimer: this command is currently alpha.
|
||||
-->
|
||||
Alpha 免责声明:此命令目前属于 alpha 阶段。
|
||||
|
||||
```
|
||||
kubeadm alpha phase upload-config [flags]
|
||||
```
|
||||
|
||||
<!--
|
||||
### Examples
|
||||
-->
|
||||
|
||||
### 例子
|
||||
|
||||
<!--
|
||||
# uploads the configuration of your cluster
|
||||
-->
|
||||
|
||||
```
|
||||
# 上传集群的配置
|
||||
kubeadm alpha phase upload-config --config=myConfig.yaml
|
||||
```
|
||||
|
||||
<!--
|
||||
### Options
|
||||
-->
|
||||
|
||||
### 选项
|
||||
|
||||
<table style="width: 100%; table-layout: fixed;">
|
||||
<colgroup>
|
||||
<col span="1" style="width: 10px;" />
|
||||
<col span="1" />
|
||||
</colgroup>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">--config string</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td><td style="line-height: 130%; word-wrap: break-word;">kubeadm 配置文件的路径。警告:配置文件的使用是实验性的。</td>
|
||||
</tr>
|
||||
<!--
|
||||
<td></td><td style="line-height: 130%; word-wrap: break-word;">Path to a kubeadm config file. WARNING: Usage of a configuration file is experimental</td>
|
||||
-->
|
||||
|
||||
<tr>
|
||||
<td colspan="2">-h, --help</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td><td style="line-height: 130%; word-wrap: break-word;">upload-config 的帮助信息</td>
|
||||
</tr>
|
||||
<!--
|
||||
<td></td><td style="line-height: 130%; word-wrap: break-word;">help for upload-config</td>
|
||||
-->
|
||||
|
||||
<tr>
|
||||
<td colspan="2">--kubeconfig string 默认值: "/etc/kubernetes/admin.conf"</td>
|
||||
</tr>
|
||||
<!--
|
||||
<td colspan="2">--kubeconfig string Default: "/etc/kubernetes/admin.conf"</td>
|
||||
-->
|
||||
<tr>
|
||||
<td></td><td style="line-height: 130%; word-wrap: break-word;">用于和集群通信的 KubeConfig 文件。如果它没有被设置,那么 kubeadm 将会搜索一个已经存在于标准路径的 KubeConfig 文件。</td>
|
||||
</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 are searched for an existing KubeConfig file.</td>
|
||||
-->
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<!--
|
||||
### Options inherited from parent commands
|
||||
-->
|
||||
|
||||
### 从父命令继承的选项
|
||||
|
||||
<table style="width: 100%; table-layout: fixed;">
|
||||
<colgroup>
|
||||
<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;">[实验] 到'真实'主机根文件系统的路径。</td>
|
||||
</tr>
|
||||
<!--
|
||||
<td></td><td style="line-height: 130%; word-wrap: break-word;">[EXPERIMENTAL] The path to the 'real' host root filesystem.</td>
|
||||
-->
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user