Skip to content

Commit

Permalink
[zh] Sync kubeadm_kubeconfig files
Browse files Browse the repository at this point in the history
  • Loading branch information
windsonsea committed Sep 19, 2023
1 parent 43974b5 commit 9236c2d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 82 deletions.
@@ -1,35 +1,21 @@
<!--
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.
-->

<!--
Use this command to invoke single phase of the init workflow
-->
使用此命令可以调用 init 工作流程的单个阶段
使用此命令可以调用 init 工作流程的单个阶段

<!--
### Synopsis
-->

### 概要

<!--
Use this command to invoke single phase of the init workflow
-->

使用此命令可以调用 init 工作流程的单个阶段
使用此命令可以调用 init 工作流程的单个阶段。

<!--
### Options
-->

### 选项

<table style="width: 100%; table-layout: fixed;">
Expand All @@ -47,7 +33,7 @@ Use this command to invoke single phase of the init workflow
<!--
<p>help for phase</p>
-->
<p>phase 操作的帮助命令</p>
<p>phase 操作的帮助命令</p>
</td>
</tr>

Expand All @@ -57,7 +43,6 @@ Use this command to invoke single phase of the init workflow
<!--
### Options inherited from parent commands
-->

### 继承于父命令的选择项

<table style="width: 100%; table-layout: fixed;">
Expand All @@ -81,4 +66,3 @@ Use this command to invoke single phase of the init workflow

</tbody>
</table>

@@ -1,14 +1,4 @@
<!--
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 conent, 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.
-->
<!--
Kubeconfig file utilities
### Synopsis
Expand All @@ -17,8 +7,7 @@ Kubeconfig file utilities.
### Options
-->

Kubeconfig 文件工具。
kubeconfig 文件工具。

### 概要

Expand All @@ -38,8 +27,10 @@ kubeconfig 文件工具。
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<!-- help for kubeconfig -->
kubeconfig 操作的帮助命令
<!--
help for kubeconfig
-->
kubeconfig 操作的帮助命令。
</td>
</tr>

Expand Down Expand Up @@ -73,4 +64,3 @@ kubeconfig 操作的帮助命令

</tbody>
</table>

@@ -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.
-->

<!--
Output a kubeconfig file for an additional user
Expand All @@ -29,28 +18,22 @@ kubeadm alpha kubeconfig user [flags]
<!--
### Examples
<!--
# Output a kubeconfig file for an additional user named foo
-->
```
# 为一个名为 foo 的其他用户输出 kubeconfig 文件
# Output a kubeconfig file for an additional user named foo
kubeadm kubeconfig user --client-name=foo
# Output a kubeconfig file for an additional user named foo using a kubeadm config file bar
kubeadm kubeconfig user --client-name=foo --config=bar
```

<!--
# Output a kubeconfig file for an additional user named foo using a kubeadm config file bar
-->
```
# 使用 kubeadm 配置文件 bar 为另一个名为 foo 的用户输出 kubeconfig 文件
kubeadm alpha kubeconfig user --client-name=foo --config=bar
```

-->
### 示例

```
# 使用名为 bar 的 kubeadm 配置文件为名为 foo 的另一用户输出 kubeconfig 文件
kubeadm kubeconfig user --client-name=foo --config=bar
```shell
# 为一个名为 foo 的其他用户输出 kubeconfig 文件
kubeadm kubeconfig user --client-name=foo

# 使用 kubeadm 配置文件 bar 为另一个名为 foo 的用户输出 kubeconfig 文件
kubeadm alpha kubeconfig user --client-name=foo --config=bar
```

<!--
Expand Down Expand Up @@ -85,7 +68,7 @@ The name of user. It will be used as the CN if client certificates are created
<!--
Path to a kubeadm configuration file.
-->
指向 kubeadm 配置文件的路径
指向 kubeadm 配置文件的路径
</td>
</tr>

Expand All @@ -97,7 +80,7 @@ Path to a kubeadm configuration file.
<!--
help for user
-->
user 操作的帮助命令
user 操作的帮助命令
</td>
</tr>

Expand All @@ -122,21 +105,23 @@ The organizations of the client certificate. It will be used as the O if client
<!--
The token that should be used as the authentication mechanism for this kubeconfig, instead of client certificates
-->
应该用此令牌做为 kubeconfig 的身份验证机制,而不是客户端证书
应该用此令牌做为 kubeconfig 的身份验证机制,而不是客户端证书
</td>
</tr>

<tr>
<td colspan="2">--validity-period duration&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 8760h0m0s</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"><!--The validity period of the client certificate. It is an offset from the current time.-->
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<!--
The validity period of the client certificate. It is an offset from the current time.
-->
<p>
客户证书的合法期限。所设置值为相对当前时间的偏移。
</p></td>
</tr>


</tbody>
</table>

Expand Down Expand Up @@ -166,4 +151,3 @@ The token that should be used as the authentication mechanism for this kubeconfi

</tbody>
</table>

@@ -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.
-->

<!--
Run cleanup node.
-->
Expand All @@ -17,7 +6,6 @@ Run cleanup node.
<!--
### Synopsis
-->

### 概要

<!--
Expand Down Expand Up @@ -71,7 +59,7 @@ The path to the directory where the certificates are stored. If specified, clean
Cleanup the &quot;/etc/kubernetes/tmp&quot; directory
-->
<p>
清理 &quot;/etc/kubernetes/tmp&quot; 目录
清理 &quot;/etc/kubernetes/tmp&quot; 目录
</p>
</td>
</tr>
Expand All @@ -85,7 +73,7 @@ Cleanup the &quot;/etc/kubernetes/tmp&quot; directory
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>
</td>
</tr>
Expand Down Expand Up @@ -115,7 +103,7 @@ Don't apply any changes; just output what would be done.
help for cleanup-node
-->
<p>
cleanup-node 操作的帮助命令
cleanup-node 操作的帮助命令
</p>
</td>
</tr>
Expand Down

0 comments on commit 9236c2d

Please sign in to comment.