[zh] Translate kubeadm kubeconfig command reference
This PR renames the kubeadm kubeconfig command reference as did in the English upstream.
This commit is contained in:
+23
-17
@@ -1,27 +1,32 @@
|
||||
|
||||
<!--
|
||||
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
|
||||
-->
|
||||
|
||||
### 概要
|
||||
|
||||
<!--
|
||||
Kubeconfig file utilities.
|
||||
-->
|
||||
|
||||
kubeconfig 文件应用程序。
|
||||
|
||||
<!-- Alpha Disclaimer: this command is currently alpha. -->
|
||||
|
||||
Alpha 免责声明:此命令当前为 alpha 功能。
|
||||
|
||||
<!--
|
||||
### Options
|
||||
-->
|
||||
|
||||
Kubeconfig 文件工具。
|
||||
|
||||
### 概要
|
||||
|
||||
kubeconfig 文件工具。
|
||||
|
||||
### 选项
|
||||
|
||||
<table style="width: 100%; table-layout: fixed;">
|
||||
<table style="width: 100%; table-layout: fixed;">
|
||||
<colgroup>
|
||||
<col span="1" style="width: 10px;" />
|
||||
<col span="1" />
|
||||
@@ -41,11 +46,12 @@ kubeconfig 操作的帮助命令
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<!-- ### Options inherited from parent commands -->
|
||||
|
||||
<!--
|
||||
### Options inherited from parent commands
|
||||
-->
|
||||
### 从父命令继承的选项
|
||||
|
||||
<table style="width: 100%; table-layout: fixed;">
|
||||
<table style="width: 100%; table-layout: fixed;">
|
||||
<colgroup>
|
||||
<col span="1" style="width: 10px;" />
|
||||
<col span="1" />
|
||||
+31
-12
@@ -1,25 +1,33 @@
|
||||
|
||||
<!--
|
||||
### Synopsis
|
||||
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.
|
||||
-->
|
||||
### 概要
|
||||
|
||||
<!--
|
||||
Output a kubeconfig file for an additional user
|
||||
|
||||
### Synopsis
|
||||
|
||||
Output a kubeconfig file for an additional user.
|
||||
-->
|
||||
为其他用户输出 kubeconfig 文件。
|
||||
为其他用户输出一个 kubeconfig 文件。
|
||||
|
||||
<!--
|
||||
Alpha Disclaimer: this command is currently alpha.
|
||||
-->
|
||||
Alpha 免责声明:此命令当前为 Alpha 功能。
|
||||
### 概要
|
||||
|
||||
为其他用户输出一个 kubeconfig 文件。
|
||||
|
||||
```
|
||||
kubeadm alpha kubeconfig user [flags]
|
||||
```
|
||||
|
||||
<!--
|
||||
### Examples # Output a kubeconfig file for an additional user named foo
|
||||
### Examples
|
||||
|
||||
```
|
||||
# Output a kubeconfig file for an additional user named foo using a kubeadm config file bar
|
||||
@@ -30,7 +38,7 @@ kubeadm alpha kubeconfig user [flags]
|
||||
|
||||
```
|
||||
# 使用名为 bar 的 kubeadm 配置文件为名为 foo 的另一用户输出 kubeconfig 文件
|
||||
kubeadm alpha kubeconfig user --client-name=foo --config=bar
|
||||
kubeadm kubeconfig user --client-name=foo --config=bar
|
||||
```
|
||||
|
||||
<!--
|
||||
@@ -82,7 +90,7 @@ user 操作的帮助命令
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">--org stringSlice</td>
|
||||
<td colspan="2">--org strings</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td><td style="line-height: 130%; word-wrap: break-word;">
|
||||
@@ -102,10 +110,21 @@ The orgnizations of the client certificate. It will be used as the O if client c
|
||||
<!--
|
||||
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 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.-->
|
||||
<p>
|
||||
客户证书的合法期限。所设置值为相对当前时间的偏移。
|
||||
</p></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
---
|
||||
title: kubeadm kubeconfig
|
||||
content_type: concept
|
||||
weight: 90
|
||||
---
|
||||
|
||||
<!--
|
||||
`kubeadm kubeconfig` provides utilities for managing kubeconfig files.
|
||||
|
||||
For examples on how to use `kubeadm kubeconfig user` see
|
||||
[Generating kubeconfig files for additional users](/docs/tasks/administer-cluster/kubeadm/kubeadm-certs#kubeconfig-additional-users).
|
||||
-->
|
||||
`kubeadm kubeconfig` 提供用来管理 kubeconfig 文件的工具。
|
||||
|
||||
如果希望查看如何使用 `kubeadm kubeconfig user` 的示例,请参阅
|
||||
[为其他用户生成 kubeconfig 文件](/zh/docs/tasks/administer-cluster/kubeadm/kubeadm-certs#kubeconfig-additional-users).
|
||||
|
||||
## kubeadm kubeconfig {#cmd-kubeconfig}
|
||||
|
||||
{{< tabs name="tab-kubeconfig" >}}
|
||||
{{< tab name="overview" include="generated/kubeadm_kubeconfig.md" />}}
|
||||
{{< /tabs >}}
|
||||
|
||||
## kubeadm kubeconfig user {#cmd-kubeconfig-user}
|
||||
|
||||
<!--
|
||||
This command can be used to output a kubeconfig file for an additional user.
|
||||
-->
|
||||
此命令可用来为其他用户生成一个 kubeconfig 文件。
|
||||
|
||||
{{< tabs name="tab-kubeconfig-user" >}}
|
||||
{{< tab name="user" include="generated/kubeadm_kubeconfig_user.md" />}}
|
||||
{{< /tabs >}}
|
||||
Reference in New Issue
Block a user