Skip to content

Commit

Permalink
Merge pull request #42751 from windsonsea/generate
Browse files Browse the repository at this point in the history
[zh] Sync kubeadm_config files
  • Loading branch information
k8s-ci-robot committed Aug 28, 2023
2 parents 2c8dab6 + b1cabff commit 93d87c3
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 93 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
<!--
The file is auto-generated from the Go source code of the component using a generic
[generator](https://github.com/kubernetes-sigs/reference-docs/). To learn how
to generate the reference documentation, please read
[Contributing to the reference documentation](/docs/contribute/generate-ref-docs/).
To update the reference content, please follow the
[Contributing upstream](/docs/contribute/generate-ref-docs/contribute-upstream/)
guide. You can file document formatting bugs against the
[reference-docs](https://github.com/kubernetes-sigs/reference-docs/) project.
-->

<!--
Interact with container images used by kubeadm
-->
Expand All @@ -17,13 +6,11 @@ Interact with container images used by kubeadm
<!--
### Synopsis
-->

### 概要

<!--
Interact with container images used by kubeadm.
-->

与 kubeadm 使用的容器镜像交互。

```
Expand All @@ -33,7 +20,6 @@ kubeadm config images [flags]
<!--
### Options
-->

### 选项

<table style="width: 100%; table-layout: fixed;">
Expand All @@ -52,15 +38,14 @@ kubeadm config images [flags]
help for images
-->
<p>
images 的帮助命令
images 的帮助命令
</p>
</td>
</tr>

</tbody>
</table>


<!--
### Options inherited from parent commands
-->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
<!--
The file is auto-generated from the Go source code of the component using a generic
[generator](https://github.com/kubernetes-sigs/reference-docs/). To learn how
to generate the reference documentation, please read
[Contributing to the reference documentation](/docs/contribute/generate-ref-docs/).
To update the reference content, please follow the
[Contributing upstream](/docs/contribute/generate-ref-docs/contribute-upstream/)
guide. You can file document formatting bugs against the
[reference-docs](https://github.com/kubernetes-sigs/reference-docs/) project.
-->
<!--
该文件是使用通用[生成器](https://github.com/kubernetes-sigs/reference-docs/) 从组件的 Go 源代码自动生成的。
要了解如何生成参考文档,请阅读[参与参考文档](/docs/contribute/generate-ref-docs/)。
要更新参考内容,请按照[贡献上游](/docs/contribute/generate-ref-docs/contribute-upstream/) 指导。
你可以针对[参考文献](https://github.com/kubernetes-sigs/reference-docs/) 项目归档文档格式错误。
-->

<!--
Print a list of images kubeadm will use. The configuration file is used in case any images or image repositories are customized
-->
Expand Down Expand Up @@ -89,7 +72,7 @@ kubeadm 配置文件的路径。
Output format. One of: text|json|yaml|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.
-->
<p>
输出格式:text|json|yaml|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file 其中之一
输出格式:text|json|yaml|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file 其中之一
</p>
</td>
</tr>
Expand All @@ -100,13 +83,14 @@ Output format. One of: text|json|yaml|go-template|go-template-file|template|temp
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<!--
A set of key=value pairs that describe feature gates for various features. Options are:<br/>PublicKeysECDSA=true|false (ALPHA - default=false)<br/>PublicKeysECDSA=true|false (ALPHA - default=false)<br/>RootlessControlPlane=true|false (ALPHA - default=false)
A set of key=value pairs that describe feature gates for various features. Options are:<br/>EtcdLearnerMode=true|false (ALPHA - default=false)<br/>PublicKeysECDSA=true|false (ALPHA - default=false)<br/>RootlessControlPlane=true|false (ALPHA - default=false)<br/>UpgradeAddonsBeforeControlPlane=true|false (DEPRECATED - default=false)
-->
<p>
一组键值对(key=value),用于描述各种特征。选项是:
<br/>PublicKeysECDSA=true|false (ALPHA - 默认=false)
<br/>RootlessControlPlane=true|false (ALPHA - 默认=false)
<br/>PublicKeysECDSA=true|false (ALPHA - 默认=false)
一组键值对(key=value),用于描述各种特性。这些选项是:<br/>
EtcdLearnerMode=true|false (ALPHA - 默认值=false)<br/>
PublicKeysECDSA=true|false (ALPHA - 默认值=false)<br/>
RootlessControlPlane=true|false (ALPHA - 默认值=false)<br/>
UpgradeAddonsBeforeControlPlane=true|false (DEPRECATED - 默认值=false)
</p>
</td>
</tr>
Expand All @@ -120,22 +104,26 @@ A set of key=value pairs that describe feature gates for various features. Optio
help for list
-->
<p>
list 操作的帮助命令
list 操作的帮助命令
</p>
</td>
</tr>

<tr>
<td colspan="2">
<!-- --image-repository string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "registry.k8s.io" -->
<!--
--image-repository string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "registry.k8s.io"
-->
--image-repository string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:"registry.k8s.io"
</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<!-- Choose a container registry to pull control plane images from -->
<!--
Choose a container registry to pull control plane images from
-->
<p>
选择要从中拉取控制平面镜像的容器仓库
选择要从中拉取控制平面镜像的容器仓库
</p>
</td>
</tr>
Expand All @@ -154,7 +142,7 @@ list 操作的帮助命令
Choose a specific Kubernetes version for the control plane.
-->
<p>
为控制平面选择一个特定的 Kubernetes 版本
为控制平面选择一个特定的 Kubernetes 版本
</p>
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
<!--
The file is auto-generated from the Go source code of the component using a generic
[generator](https://github.com/kubernetes-sigs/reference-docs/). To learn how
to generate the reference documentation, please read
[Contributing to the reference documentation](/docs/contribute/generate-ref-docs/).
To update the reference content, please follow the
[Contributing upstream](/docs/contribute/generate-ref-docs/contribute-upstream/)
guide. You can file document formatting bugs against the
[reference-docs](https://github.com/kubernetes-sigs/reference-docs/) project.
-->
<!--
该文件是使用通用[生成器](https://github.com/kubernetes-sigs/reference-docs/) 从组件的 Go 源代码自动生成的。
要了解如何生成参考文档,请阅读[参与参考文档](/docs/contribute/generate-ref-docs/)。
要更新参考内容,请按照[贡献上游](/docs/contribute/generate-ref-docs/contribute-upstream/) 指导。
你可以针对[参考文献](https://github.com/kubernetes-sigs/reference-docs/) 项目归档文档格式错误。
-->

<!--
Pull images used by kubeadm
-->
Expand All @@ -23,13 +6,11 @@ Pull images used by kubeadm
<!--
### Synopsis
-->

### 概要

<!--
Pull images used by kubeadm.
-->

拉取 kubeadm 使用的镜像。

```
Expand All @@ -39,7 +20,6 @@ kubeadm config images pull [flags]
<!--
### Options
-->

### 选项

<table style="width: 100%; table-layout: fixed;">
Expand Down Expand Up @@ -83,12 +63,13 @@ Path to the CRI socket to connect. If empty kubeadm will try to auto-detect this
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<!--
A set of key=value pairs that describe feature gates for various features. Options are:<br/>EtcdLearnerMode=true|false (ALPHA - default=false)<br/>PublicKeysECDSA=true|false (ALPHA - default=false)<br/>RootlessControlPlane=true|false (ALPHA - default=false)
A set of key=value pairs that describe feature gates for various features. Options are:<br/>EtcdLearnerMode=true|false (ALPHA - default=false)<br/>PublicKeysECDSA=true|false (ALPHA - default=false)<br/>RootlessControlPlane=true|false (ALPHA - default=false)<br/>UpgradeAddonsBeforeControlPlane=true|false (DEPRECATED - default=false)
-->
一系列键值对(key=value),用于描述各种特征。可选项是:
<br/>EtcdLearnerMode=true|false (ALPHA - 默认值=false)
<br/>PublicKeysECDSA=true|false (ALPHA - 默认值=false)
<br/>RootlessControlPlane=true|false (ALPHA - 默认值=false)
一系列键值对(key=value),用于描述各种特性。可选项是:<br/>
EtcdLearnerMode=true|false (ALPHA - 默认值=false)<br/>
PublicKeysECDSA=true|false (ALPHA - 默认值=false)<br/>
RootlessControlPlane=true|false (ALPHA - 默认值=false)<br/>
UpgradeAddonsBeforeControlPlane=true|false (DEPRECATED - 默认值=false)
</td>
</tr>

Expand All @@ -101,7 +82,7 @@ A set of key=value pairs that describe feature gates for various features. Optio
help for pull
-->
<p>
pull 操作的帮助命令
pull 操作的帮助命令
</p>
</td>
</tr>
Expand All @@ -120,7 +101,7 @@ pull 操作的帮助命令
Choose a container registry to pull control plane images from
-->
<p>
选择用于拉取控制平面镜像的容器仓库
选择用于拉取控制平面镜像的容器仓库
</p>
</td>
</tr>
Expand Down Expand Up @@ -150,7 +131,6 @@ Choose a specific Kubernetes version for the control plane.
<!--
### Options inherited from parent commands
-->

### 从父命令继承的选项

<table style="width: 100%; table-layout: fixed;">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
<!--
The file is auto-generated from the Go source code of the component using a generic
[generator](https://github.com/kubernetes-sigs/reference-docs/). To learn how
to generate the reference documentation, please read
[Contributing to the reference documentation](/docs/contribute/generate-ref-docs/).
To update the reference content, please follow the
[Contributing upstream](/docs/contribute/generate-ref-docs/contribute-upstream/)
guide. You can file document formatting bugs against the
[reference-docs](https://github.com/kubernetes-sigs/reference-docs/) project.
-->

<!--
Read an older version of the kubeadm configuration API types from a file, and output the similar config object for the newer version
-->
Expand All @@ -17,7 +6,6 @@ Read an older version of the kubeadm configuration API types from a file, and ou
<!--
### Synopsis
-->

### 概要

<!--
Expand All @@ -26,8 +14,9 @@ locally in the CLI tool without ever touching anything in the cluster.
In this version of kubeadm, the following API versions are supported:
- kubeadm.k8s.io/v1beta3
-->
此命令允许你在 CLI 工具中将本地旧版本的配置对象转换为最新支持的版本,而无需变更集群中的任何内容。
在此版本的 kubeadm 中,支持以下 API 版本:

此命令允许您在 CLI 工具中将本地旧版本的配置对象转换为最新支持的版本,而无需变更集群中的任何内容。在此版本的 kubeadm 中,支持以下 API 版本:
- kubeadm.k8s.io/v1beta3

<!--
Expand All @@ -37,15 +26,14 @@ read, deserialized, defaulted, converted, validated, and re-serialized when writ
--new-config if specified.
-->

因此,无论您在此处传递 --old-config 参数的版本是什么,当写入到 stdout 或 --new-config (如果已指定)时,
因此,无论你在此处传递 --old-config 参数的版本是什么,当写入到 stdout 或 --new-config (如果已指定)时,
都会读取、反序列化、默认、转换、验证和重新序列化 API 对象。

<!--
In other words, the output of this command is what kubeadm actually would read internally if you
submitted this file to "kubeadm init"
-->

换句话说,如果您将此文件传递给 "kubeadm init",则该命令的输出就是 kubeadm 实际上在内部读取的内容。
换句话说,如果你将此文件传递给 "kubeadm init",则该命令的输出就是 kubeadm 实际上在内部读取的内容。

```
kubeadm config migrate [flags]
Expand All @@ -54,7 +42,6 @@ kubeadm config migrate [flags]
<!--
### Options
-->

### 选项

<table style="width: 100%; table-layout: fixed;">
Expand All @@ -72,7 +59,7 @@ kubeadm config migrate [flags]
<!--
<p>help for migrate</p>
-->
<p>migrate 操作的帮助信息</p>
<p>migrate 操作的帮助信息</p>
</td>
</tr>

Expand Down Expand Up @@ -106,7 +93,6 @@ kubeadm config migrate [flags]
<!--
### Options inherited from parent commands
-->

### 从父命令继承的选项

<table style="width: 100%; table-layout: fixed;">
Expand All @@ -118,7 +104,9 @@ kubeadm config migrate [flags]

<tr>
<td colspan="2">
<!-- kubeconfig string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes/admin.conf" -->
<!--
kubeconfig string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes/admin.conf"
-->
--kubeconfig string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:"/etc/kubernetes/admin.conf"
</td>
</tr>
Expand All @@ -145,4 +133,3 @@ kubeadm config migrate [flags]

</tbody>
</table>

0 comments on commit 93d87c3

Please sign in to comment.