[zh-cn]sync kubeadm_config/* kubeadm_init/*

Signed-off-by: xin.li <xin.li@daocloud.io>
pull/49539/head
xin.li 2025-01-23 14:00:04 +08:00
parent e86e7262c0
commit b3a4beb2f3
4 changed files with 60 additions and 49 deletions

View File

@ -13,7 +13,7 @@ Print a list of images kubeadm will use. The configuration file is used in case
--> -->
打印 kubeadm 要使用的镜像列表。配置文件用于自定义镜像或镜像存储库。 打印 kubeadm 要使用的镜像列表。配置文件用于自定义镜像或镜像存储库。
``` ```shell
kubeadm config images list [flags] kubeadm config images list [flags]
``` ```
@ -22,7 +22,7 @@ kubeadm config images list [flags]
--> -->
### 选项 ### 选项
<table style="width: 100%; table-layout: fixed;"> <table style="width: 100%; table-layout: fixed;">
<colgroup> <colgroup>
<col span="1" style="width: 10px;" /> <col span="1" style="width: 10px;" />
<col span="1" /> <col span="1" />
@ -37,10 +37,10 @@ kubeadm config images list [flags]
</tr> </tr>
<tr> <tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"> <td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!-- <!--
If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.
--> -->
<p>
如果设置为 true则在模板中缺少字段或哈希表的键时忽略模板中的任何错误。 如果设置为 true则在模板中缺少字段或哈希表的键时忽略模板中的任何错误。
仅适用于 golang 和 jsonpath 输出格式。 仅适用于 golang 和 jsonpath 输出格式。
</p> </p>
@ -52,10 +52,10 @@ If true, ignore any errors in templates when a field or map key is missing in th
</tr> </tr>
<tr> <tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"> <td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!-- <!--
Path to a kubeadm configuration file. Path to a kubeadm configuration file.
--> -->
<p>
kubeadm 配置文件的路径。 kubeadm 配置文件的路径。
</p> </p>
</td> </td>
@ -82,20 +82,20 @@ Output format. One of: text|json|yaml|go-template|go-template-file|template|temp
</tr> </tr>
<tr> <tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"> <td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!-- <!--
A set of key=value pairs that describe feature gates for various features. Options are:<br/> A set of key=value pairs that describe feature gates for various features. Options are:<br/>
ControlPlaneKubeletLocalMode=true|false (ALPHA - default=false)<br/>
EtcdLearnerMode=true|false (BETA - default=true)<br/> EtcdLearnerMode=true|false (BETA - default=true)<br/>
PublicKeysECDSA=true|false (DEPRECATED - default=false)<br/> PublicKeysECDSA=true|false (DEPRECATED - default=false)<br/>
RootlessControlPlane=true|false (ALPHA - default=false)<br/> RootlessControlPlane=true|false (ALPHA - default=false)<br/>
UpgradeAddonsBeforeControlPlane=true|false (DEPRECATED - default=false)<br/> WaitForAllControlPlaneComponents=true|false (ALPHA - default=false)</p>
WaitForAllControlPlaneComponents=true|false (ALPHA - default=false)
--> -->
<p>
一组键值对key=value用于描述各种特性。这些选项是<br/> 一组键值对key=value用于描述各种特性。这些选项是<br/>
ControlPlaneKubeletLocalMode=true|false (ALPHA - 默认值=false)<br/>
EtcdLearnerMode=true|false (BETA - 默认值=true)<br/> EtcdLearnerMode=true|false (BETA - 默认值=true)<br/>
PublicKeysECDSA=true|false (DEPRECATED - 默认值=false)<br/> PublicKeysECDSA=true|false (DEPRECATED - 默认值=false)<br/>
RootlessControlPlane=true|false (ALPHA - 默认值=false)<br/> RootlessControlPlane=true|false (ALPHA - 默认值=false)<br/>
UpgradeAddonsBeforeControlPlane=true|false (DEPRECATED - 默认值=false)<br/>
WaitForAllControlPlaneComponents=true|false (ALPHA - 默认值=false) WaitForAllControlPlaneComponents=true|false (ALPHA - 默认值=false)
</p> </p>
</td> </td>
@ -106,10 +106,10 @@ WaitForAllControlPlaneComponents=true|false (ALPHA - 默认值=false)
</tr> </tr>
<tr> <tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"> <td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!-- <!--
help for list help for list
--> -->
<p>
list 操作的帮助命令。 list 操作的帮助命令。
</p> </p>
</td> </td>
@ -125,10 +125,10 @@ list 操作的帮助命令。
</tr> </tr>
<tr> <tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"> <td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!-- <!--
Choose a container registry to pull control plane images from Choose a container registry to pull control plane images from
--> -->
<p>
选择要从中拉取控制平面镜像的容器仓库。 选择要从中拉取控制平面镜像的容器仓库。
</p> </p>
</td> </td>
@ -144,10 +144,10 @@ Choose a container registry to pull control plane images from
</tr> </tr>
<tr> <tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"> <td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!-- <!--
Choose a specific Kubernetes version for the control plane. Choose a specific Kubernetes version for the control plane.
--> -->
<p>
为控制平面选择一个特定的 Kubernetes 版本。 为控制平面选择一个特定的 Kubernetes 版本。
</p> </p>
</td> </td>
@ -163,10 +163,10 @@ Choose a specific Kubernetes version for the control plane.
</tr> </tr>
<tr> <tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"> <td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!-- <!--
If true, keep the managedFields when printing objects in JSON or YAML format. If true, keep the managedFields when printing objects in JSON or YAML format.
--> -->
<p>
如果为 true则在以 JSON 或 YAML 格式打印对象时保留 managedFields。 如果为 true则在以 JSON 或 YAML 格式打印对象时保留 managedFields。
</p> </p>
</td> </td>
@ -180,7 +180,7 @@ If true, keep the managedFields when printing objects in JSON or YAML format.
--> -->
### 从父命令继承的选项 ### 从父命令继承的选项
<table style="width: 100%; table-layout: fixed;"> <table style="width: 100%; table-layout: fixed;">
<colgroup> <colgroup>
<col span="1" style="width: 10px;" /> <col span="1" style="width: 10px;" />
<col span="1" /> <col span="1" />
@ -197,11 +197,12 @@ If true, keep the managedFields when printing objects in JSON or YAML format.
</tr> </tr>
<tr> <tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"> <td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!-- <!--
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. 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.
--> -->
<p> 用于和集群通信的 kubeconfig 文件。如果它没有被设置,那么 kubeadm
用于和集群通信的 kubeconfig 文件。如果它没有被设置,那么 kubeadm 将会搜索一个已经存在于标准路径的 kubeconfig 文件。 将会搜索一个已经存在于标准路径的 kubeconfig 文件。
</p> </p>
</td> </td>
</tr> </tr>
@ -211,10 +212,10 @@ The kubeconfig file to use when talking to the cluster. If the flag is not set,
</tr> </tr>
<tr> <tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"> <td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!-- <!--
[EXPERIMENTAL] The path to the 'real' host root filesystem. [EXPERIMENTAL] The path to the 'real' host root filesystem.
--> -->
<p>
[实验] 到“真实”主机根文件系统的路径。 [实验] 到“真实”主机根文件系统的路径。
</p> </p>
</td> </td>

View File

@ -13,7 +13,7 @@ Pull images used by kubeadm.
--> -->
拉取 kubeadm 使用的镜像。 拉取 kubeadm 使用的镜像。
``` ```shell
kubeadm config images pull [flags] kubeadm config images pull [flags]
``` ```
@ -22,7 +22,7 @@ kubeadm config images pull [flags]
--> -->
### 选项 ### 选项
<table style="width: 100%; table-layout: fixed;"> <table style="width: 100%; table-layout: fixed;">
<colgroup> <colgroup>
<col span="1" style="width: 10px;" /> <col span="1" style="width: 10px;" />
<col span="1" /> <col span="1" />
@ -34,10 +34,10 @@ kubeadm config images pull [flags]
</tr> </tr>
<tr> <tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"> <td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!-- <!--
Path to a kubeadm configuration file. Path to a kubeadm configuration file.
--> -->
<p>
kubeadm 配置文件的路径。 kubeadm 配置文件的路径。
</p> </p>
</td> </td>
@ -48,10 +48,10 @@ kubeadm 配置文件的路径。
</tr> </tr>
<tr> <tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"> <td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!-- <!--
Path to the CRI socket to connect. If empty kubeadm will try to auto-detect this value; use this option only if you have more than one CRI installed or if you have non-standard CRI socket. Path to the CRI socket to connect. If empty kubeadm will try to auto-detect this value; use this option only if you have more than one CRI installed or if you have non-standard CRI socket.
--> -->
<p>
要连接的 CRI 套接字的路径。如果为空,则 kubeadm 将尝试自动检测此值;仅当安装了多个 CRI 或具有非标准 CRI 插槽时,才使用此选项。 要连接的 CRI 套接字的路径。如果为空,则 kubeadm 将尝试自动检测此值;仅当安装了多个 CRI 或具有非标准 CRI 插槽时,才使用此选项。
</p> </p>
</td> </td>
@ -62,20 +62,22 @@ Path to the CRI socket to connect. If empty kubeadm will try to auto-detect this
</tr> </tr>
<tr> <tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"> <td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!-- <!--
A set of key=value pairs that describe feature gates for various features. Options are:<br/> A set of key=value pairs that describe feature gates for various features. Options are:<br/>
ControlPlaneKubeletLocalMode=true|false (ALPHA - default=false)<br/>
EtcdLearnerMode=true|false (BETA - default=true)<br/> EtcdLearnerMode=true|false (BETA - default=true)<br/>
PublicKeysECDSA=true|false (DEPRECATED - default=false)<br/> PublicKeysECDSA=true|false (DEPRECATED - default=false)<br/>
RootlessControlPlane=true|false (ALPHA - default=false)<br/> RootlessControlPlane=true|false (ALPHA - default=false)<br/>
UpgradeAddonsBeforeControlPlane=true|false (DEPRECATED - default=false)<br/>
WaitForAllControlPlaneComponents=true|false (ALPHA - default=false) WaitForAllControlPlaneComponents=true|false (ALPHA - default=false)
--> -->
一系列键值对key=value用于描述各种特性。可选项是<br/> 一系列键值对key=value用于描述各种特性。可选项是<br/>
ControlPlaneKubeletLocalMode=true|false (ALPHA - 默认值=false)<br/>
EtcdLearnerMode=true|false (BETA - 默认值=true)<br/> EtcdLearnerMode=true|false (BETA - 默认值=true)<br/>
PublicKeysECDSA=true|false (DEPRECATED - 默认值=false)<br/> PublicKeysECDSA=true|false (DEPRECATED - 默认值=false)<br/>
RootlessControlPlane=true|false (ALPHA - 默认值=false)<br/> RootlessControlPlane=true|false (ALPHA - 默认值=false)<br/>
UpgradeAddonsBeforeControlPlane=true|false (DEPRECATED - 默认值=false)<br/>
WaitForAllControlPlaneComponents=true|false (ALPHA - 默认值=false) WaitForAllControlPlaneComponents=true|false (ALPHA - 默认值=false)
</p>
</td> </td>
</tr> </tr>
@ -84,10 +86,10 @@ WaitForAllControlPlaneComponents=true|false (ALPHA - 默认值=false)
</tr> </tr>
<tr> <tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"> <td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!-- <!--
help for pull help for pull
--> -->
<p>
pull 操作的帮助命令。 pull 操作的帮助命令。
</p> </p>
</td> </td>
@ -103,10 +105,10 @@ pull 操作的帮助命令。
</tr> </tr>
<tr> <tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"> <td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!-- <!--
Choose a container registry to pull control plane images from Choose a container registry to pull control plane images from
--> -->
<p>
选择用于拉取控制平面镜像的容器仓库。 选择用于拉取控制平面镜像的容器仓库。
</p> </p>
</td> </td>
@ -122,10 +124,10 @@ Choose a container registry to pull control plane images from
</tr> </tr>
<tr> <tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"> <td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!-- <!--
Choose a specific Kubernetes version for the control plane. Choose a specific Kubernetes version for the control plane.
--> -->
<p>
为控制平面选择一个特定的 Kubernetes 版本。 为控制平面选择一个特定的 Kubernetes 版本。
</p> </p>
</td> </td>
@ -139,7 +141,7 @@ Choose a specific Kubernetes version for the control plane.
--> -->
### 从父命令继承的选项 ### 从父命令继承的选项
<table style="width: 100%; table-layout: fixed;"> <table style="width: 100%; table-layout: fixed;">
<colgroup> <colgroup>
<col span="1" style="width: 10px;" /> <col span="1" style="width: 10px;" />
<col span="1" /> <col span="1" />
@ -156,11 +158,12 @@ Choose a specific Kubernetes version for the control plane.
</tr> </tr>
<tr> <tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"> <td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!-- <!--
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. 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.
--> -->
<p> 用于和集群通信的 kubeconfig 文件。如果它没有被设置,那么 kubeadm
用于和集群通信的 kubeconfig 文件。如果它没有被设置,那么 kubeadm 将会搜索一个已经存在于标准路径的 kubeconfig 文件。 将会搜索一个已经存在于标准路径的 kubeconfig 文件。
</p> </p>
</td> </td>
</tr> </tr>
@ -170,11 +173,11 @@ The kubeconfig file to use when talking to the cluster. If the flag is not set,
</tr> </tr>
<tr> <tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"> <td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!-- <!--
[EXPERIMENTAL] The path to the 'real' host root filesystem. [EXPERIMENTAL] The path to the 'real' host root filesystem.
--> -->
<p> [实验] 到'真实'主机根文件系统的路径。
[实验] 到 '真实' 主机根文件系统的路径。
</p> </p>
</td> </td>
</tr> </tr>

View File

@ -9,11 +9,11 @@ Generate all static Pod manifest files necessary to establish the control plane
### 概要 ### 概要
<!-- <!--
This command is not meant to be run on its own. See list of available subcommands. Generate all static Pod manifest files necessary to establish the control plane
--> -->
此命令并非设计用来单独运行。请参阅可用子命令列表。 生成建立控制平面所需的所有静态 Pod 的清单文件
``` ```shell
kubeadm init phase control-plane [flags] kubeadm init phase control-plane [flags]
``` ```
@ -22,7 +22,7 @@ kubeadm init phase control-plane [flags]
--> -->
### 选项 ### 选项
<table style="width: 100%; table-layout: fixed;"> <table style="width: 100%; table-layout: fixed;">
<colgroup> <colgroup>
<col span="1" style="width: 10px;" /> <col span="1" style="width: 10px;" />
<col span="1" /> <col span="1" />
@ -34,10 +34,12 @@ kubeadm init phase control-plane [flags]
</tr> </tr>
<tr> <tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"> <td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!-- <!--
<p>help for control-plane</p> help for control-plane
--> -->
<p>control-plane 操作的帮助命令。</p> control-plane 操作的帮助命令。
</p>
</td> </td>
</tr> </tr>
@ -49,7 +51,7 @@ kubeadm init phase control-plane [flags]
--> -->
### 继承于父命令的选项 ### 继承于父命令的选项
<table style="width: 100%; table-layout: fixed;"> <table style="width: 100%; table-layout: fixed;">
<colgroup> <colgroup>
<col span="1" style="width: 10px;" /> <col span="1" style="width: 10px;" />
<col span="1" /> <col span="1" />
@ -61,11 +63,12 @@ kubeadm init phase control-plane [flags]
</tr> </tr>
<tr> <tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"> <td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!-- <!--
<p>[EXPERIMENTAL] The path to the 'real' host root filesystem.</p> [EXPERIMENTAL] The path to the 'real' host root filesystem.
--> -->
<p>[实验] 到 '真实' 主机根文件系统的路径。</p> [实验] 到'真实'主机根文件系统的路径。
</td> </p>
</td> </td>
</tr> </tr>

View File

@ -9,11 +9,11 @@ Generate all kubeconfig files necessary to establish the control plane and the a
### 概要 ### 概要
<!-- <!--
This command is not meant to be run on its own. See list of available subcommands. Generate all kubeconfig files necessary to establish the control plane and the admin kubeconfig file
--> -->
此命令并非设计用来单独运行。请阅读可用子命令列表。 生成建立控制平面和管理 kubeconfig 文件所需的所有 kubeconfig 文件
``` ```shell
kubeadm init phase kubeconfig [flags] kubeadm init phase kubeconfig [flags]
``` ```
@ -22,7 +22,7 @@ kubeadm init phase kubeconfig [flags]
--> -->
### 选项 ### 选项
<table style="width: 100%; table-layout: fixed;"> <table style="width: 100%; table-layout: fixed;">
<colgroup> <colgroup>
<col span="1" style="width: 10px;" /> <col span="1" style="width: 10px;" />
<col span="1" /> <col span="1" />
@ -34,10 +34,12 @@ kubeadm init phase kubeconfig [flags]
</tr> </tr>
<tr> <tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"> <td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!-- <!--
<p>help for kubeconfig</p> help for kubeconfig
--> -->
<p>kubeconfig 操作的帮助命令</p> kubeconfig 操作的帮助命令
</p>
</td> </td>
</tr> </tr>
@ -49,7 +51,7 @@ kubeadm init phase kubeconfig [flags]
--> -->
### 从父命令继承的选项 ### 从父命令继承的选项
<table style="width: 100%; table-layout: fixed;"> <table style="width: 100%; table-layout: fixed;">
<colgroup> <colgroup>
<col span="1" style="width: 10px;" /> <col span="1" style="width: 10px;" />
<col span="1" /> <col span="1" />
@ -61,10 +63,12 @@ kubeadm init phase kubeconfig [flags]
</tr> </tr>
<tr> <tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"> <td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!-- <!--
<p>[EXPERIMENTAL] The path to the 'real' host root filesystem.</p> [EXPERIMENTAL] The path to the 'real' host root filesystem.
--> -->
<p>[实验] 到 '真实' 主机根文件系统的路径。</p> [实验] 到'真实'主机根文件系统的路径。
</p>
</td> </td>
</tr> </tr>