Merge pull request #49081 from windsonsea/initex

[zh] Sync 2 files related to kubeadm/generated/kubeadm_init/
pull/49088/head
Kubernetes Prow Robot 2024-12-14 09:28:42 +01:00 committed by GitHub
commit 722cdac5fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 100 deletions

View File

@ -1,93 +0,0 @@
<!--
Enable kubelet client certificate rotation
-->
启用 kubelet 客户端证书轮换
<!--
### Synopsis
-->
### 概要
<!-- Enable kubelet client certificate rotation -->
启用 kubelet 客户端证书轮换
```
kubeadm init phase kubelet-finalize experimental-cert-rotation [flags]
```
<!--
### Options
-->
### 选项
<table style="width: 100%; table-layout: fixed;">
<colgroup>
<col span="1" style="width: 10px;" />
<col span="1" />
</colgroup>
<tbody>
<tr>
<td colspan="2">--cert-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes/pki"</td>
</tr>
<tr>
<!-- <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>The path where to save and store the certificates.</p></td> -->
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>保存和存储证书的路径。</p></td>
</tr>
<tr>
<td colspan="2">--config string</td>
</tr>
<tr>
<!-- <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>Path to a kubeadm configuration file.</p></td> -->
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>kubeadm 配置文件的路径。</p></td>
</tr>
<tr>
<td colspan="2">--dry-run</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<!--
Don't apply any changes; just output what would be done.
-->
<p>
不做任何更改;只输出将要执行的操作。
</p>
</td>
</tr>
<tr>
<td colspan="2">-h, --help</td>
</tr>
<tr>
<!-- <td></td><td style="line-height: 130%; word-wrap: break-word;"><p>help for experimental-cert-rotation</p></td> -->
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>experimental-cert-rotation 操作的帮助命令</p></td>
</tr>
</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;"><p>[EXPERIMENTAL] The path to the 'real' host root filesystem.</p></td> -->
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>[实验] 到'真实'主机根文件系统的路径。</p></td>
</tr>
</tbody>
</table>

View File

@ -86,7 +86,7 @@ Can be used to create all required certificates by kubeadm.
<!--
You can create all required kubeconfig files by calling the `all` subcommand or call them individually.
-->
可以通过调用 `all` 子命令来创建所有必需的 kubeconfig 文件,或者分别调用它们。
可以通过调用 `all` 子命令来创建所有必需的 kubeconfig 文件,或者分别调用它们。
{{< tabs name="tab-kubeconfig" >}}
{{< tab name="kubeconfig" include="generated/kubeadm_init/kubeadm_init_phase_kubeconfig.md" />}}
@ -106,7 +106,7 @@ You can create all required kubeconfig files by calling the `all` subcommand or
<!--
Using this phase you can create all required static Pod files for the control plane components.
-->
使用此阶段,可以为控制平面组件创建所有必需的静态 Pod 文件。
使用此阶段,可以为控制平面组件创建所有必需的静态 Pod 文件。
{{< tabs name="tab-control-plane" >}}
{{< tab name="control-plane" include="generated/kubeadm_init/kubeadm_init_phase_control-plane.md" />}}
@ -140,7 +140,7 @@ Use the following phase to create a local etcd instance based on a static Pod fi
You can use this command to upload the kubeadm configuration to your cluster.
Alternatively, you can use [kubeadm config](/docs/reference/setup-tools/kubeadm/kubeadm-config/).
-->
可以使用此命令将 kubeadm 配置上传到集群或者使用
可以使用此命令将 kubeadm 配置上传到集群或者使用
[kubeadm config](/zh-cn/docs/reference/setup-tools/kubeadm/kubeadm-config/)。
{{< tabs name="upload-config" >}}
@ -173,8 +173,7 @@ By default the certs and encryption key expire after two hours.
<!--
Use the following phase to label and taint the node as a control plane node.
-->
使用以下阶段来给作为控制平面的节点
打标签label和记录污点taint
使用以下阶段来给作为控制平面的节点打标签label和记录污点taint
{{< tabs name="tab-mark-control-plane" >}}
{{< tab name="mark-control-plane" include="generated/kubeadm_init/kubeadm_init_phase_mark-control-plane.md" />}}
@ -207,7 +206,7 @@ phases.
{{< tabs name="tab-kubelet-finalize" >}}
{{< tab name="kubelet-finalize" include="generated/kubeadm_init/kubeadm_init_phase_kubelet-finalize.md" />}}
{{< tab name="kubelet-finalize-all" include="generated/kubeadm_init/kubeadm_init_phase_kubelet-finalize_all.md" />}}
{{< tab name="kubelet-finalize-cert-rotation" include="generated/kubeadm_init/kubeadm_init_phase_kubelet-finalize_experimental-cert-rotation.md" />}}
{{< tab name="kubelet-finalize-enable-client-cert-rotation" include="generated/kubeadm_init/kubeadm_init_phase_kubelet-finalize_enable-client-cert-rotation.md" />}}
{{< /tabs >}}
<!--
@ -219,7 +218,7 @@ phases.
You can install all the available addons with the `all` subcommand, or
install them selectively.
-->
可以使用 `all` 子命令安装所有可用的插件,或者有选择性地安装它们。
可以使用 `all` 子命令安装所有可用的插件,或者有选择性地安装它们。
{{< tabs name="tab-addon" >}}
{{< tab name="addon" include="generated/kubeadm_init/kubeadm_init_phase_addon.md" />}}