Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add zh trans content/zh/docs/reference/setup-tools/kubeadm/generated/… #17387

Merged
merged 1 commit into from
Nov 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@

<!--
### Synopsis
-->
### 概要


<!--
Renew the certificate embedded in the kubeconfig file for the admin to use and for kubeadm itself.
-->
续订 kubeconfig 文件中嵌入的证书,供管理员 和 kubeadm 自身使用。

<!--
Renewals run unconditionally, regardless of certificate expiration date; extra attributes such as SANs will be based on the existing file/certificates, there is no need to resupply them.
-->
无论证书的到期日期如何,续订都是无条件进行的;SAN 等额外属性将基于现有文件/证书,因此无需重新提供它们。

<!--
Renewal by default tries to use the certificate authority in the local PKI managed by kubeadm; as alternative it is possible to use K8s certificate API for certificate renewal, or as a last option, to generate a CSR request.
-->
默认情况下,续订会尝试使用由 kubeadm 管理的本地 PKI 中的证书机构;作为替代方案,也可以使用 K8s certificate API 进行证书续订,或者(作为最后一种选择)生成 CSR 请求。

<!--
After renewal, in order to make changes effective, is is required to restart control-plane components and eventually re-distribute the renewed certificate in case the file is used elsewhere.
-->
续订后,为了使更改生效,需要重新启动控制平面组件,并最终重新分发更新的证书,以防证书文件在其他地方使用。

```
kubeadm alpha certs renew admin.conf [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"
-->
--cert-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:"/etc/kubernetes/pki"
</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<!--
The path where to save the certificates.
-->
保存证书的路径。
</td>
</tr>

<tr>
<td colspan="2">--config string</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<!--
Path to a kubeadm configuration file.
-->
kubeadm 配置文件的路径。
</td>
</tr>

<tr>
<td colspan="2">--csr-dir string</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<!--
The path to output the CSRs and private keys to
-->
CSR 和私钥的输出路径
</td>
</tr>

<tr>
<td colspan="2">--csr-only</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<!--
Create CSRs instead of generating certificates
-->
创建 CSR 而不是生成证书
</td>
</tr>

<tr>
<td colspan="2">-h, --help</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<!--
help for admin.conf
-->
admin.conf 操作的帮助命令
</td>
</tr>

<tr>
<td colspan="2">--kubeconfig string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes/admin.conf"</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<!--
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.
-->
与集群通信时使用的 kubeconfig 文件。如果未设置该参数,则可以在一组标准位置中搜索现有的 kubeconfig 文件。
</td>
</tr>

<tr>
<td colspan="2">--use-api</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<!--
Use the Kubernetes certificate API to renew certificates
-->
使用 Kubernetes 证书 API 续订证书
</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;">
<!--
[EXPERIMENTAL] The path to the 'real' host root filesystem.
-->
[实验] 到 '真实' 主机根文件系统的路径。
</td>
</tr>

</tbody>
</table>



<!--
SEE ALSO
-->
查看其他

<!--
* [kubeadm alpha certs renew](kubeadm_alpha_certs_renew.md) - Renew certificates for a Kubernetes cluster
-->
* [kubeadm alpha certs renew](kubeadm_alpha_certs_renew.md) - 续订 Kubernetes 集群的证书

Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ kubeadm alpha certs renew etcd-peer [flags]
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<!--
The path to output the CSRs and private keys to
Create CSRs instead of generating certificates
-->
CSR 和私钥的输出路径
创建 CSR 而不是生成证书
</td>
</tr>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@

<!--
### Synopsis
-->
### 概要


<!--
Use this command to invoke single phase of the reset workflow
-->
使用此命令来调用 `reset` 工作流程的某个阶段

<!--
### Options
-->
### 选项

<table style="width: 100%; table-layout: fixed;">
<colgroup>
<col span="1" style="width: 10px;" />
<col span="1" />
</colgroup>
<tbody>

<tr>
<td colspan="2">-h, --help</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<!--
help for phase
-->
phase 操作的帮助命令
</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;">
<!--
[EXPERIMENTAL] The path to the 'real' host root filesystem.
-->
[实验] 指向 '真实' 宿主机根文件系统的路径。
</td>
</tr>

</tbody>
</table>



<!--
SEE ALSO
-->
查看其他

<!--
* [kubeadm reset](kubeadm_reset.md) - Performs a best effort revert of changes made to this host by 'kubeadm init' or 'kubeadm join'
-->
* [kubeadm reset](kubeadm_reset.md) - 尽最大努力还原通过 “kubeadm init” 或 “kubeadm join” 操作对主机所做的更改
<!--
* [kubeadm reset phase cleanup-node](kubeadm_reset_phase_cleanup-node.md) - Run cleanup node.
-->
* [kubeadm reset phase cleanup-node](kubeadm_reset_phase_cleanup-node.md) - 执行 cleanup node(清理节点)操作。
<!--
* [kubeadm reset phase preflight](kubeadm_reset_phase_preflight.md) - Run reset pre-flight checks
-->
* [kubeadm reset phase preflight](kubeadm_reset_phase_preflight.md) - 运行 reset 命令启动前检查
<!--
* [kubeadm reset phase remove-etcd-member](kubeadm_reset_phase_remove-etcd-member.md) - Remove a local etcd member.
-->
* [kubeadm reset phase remove-etcd-member](kubeadm_reset_phase_remove-etcd-member.md) - 删除某个本地 etcd 成员。
<!--
* [kubeadm reset phase update-cluster-status](kubeadm_reset_phase_update-cluster-status.md) - Remove this node from the ClusterStatus object.
-->
* [kubeadm reset phase update-cluster-status](kubeadm_reset_phase_update-cluster-status.md) - 从 ClusterStatus 对象中删除该节点。

Loading