Skip to content

Commit

Permalink
[zh] Sync kubeadm-init files
Browse files Browse the repository at this point in the history
  • Loading branch information
windsonsea committed Oct 19, 2023
1 parent bd661f0 commit f554e20
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 78 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
<!--
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.
-->

<!--
Upload certificates to kubeadm-certs
-->
将证书上传到 kubeadm-certs
将证书上传到 kubeadm-certs

<!--
### Synopsis
Expand All @@ -22,7 +11,7 @@ Upload certificates to kubeadm-certs
<!--
Upload control plane certificates to the kubeadm-certs Secret
-->
将控制平面证书上传到 kubeadm-certs Secret
将控制平面证书上传到 kubeadm-certs Secret

```
kubeadm init phase upload-certs [flags]
Expand Down Expand Up @@ -91,7 +80,7 @@ Don't apply any changes; just output what would be done.
help for upload-certs
-->
<p>
upload-certs 操作的帮助命令
upload-certs 操作的帮助命令
</p>
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,30 +1,16 @@
<!--
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.
-->


<!--
Upload all configuration to a config map
-->
将所有配置上传到 ConfigMap
将所有配置上传到 ConfigMap

<!--
### Synopsis
-->

### 概要

<!--
Upload all configuration to a config map
-->

将所有配置上传到 ConfigMap

```
Expand All @@ -34,7 +20,6 @@ kubeadm init phase upload-config all [flags]
<!--
### Options
-->

### 选项

<table style="width: 100%; table-layout: fixed;">
Expand Down Expand Up @@ -101,7 +86,7 @@ help for all
</p>
-->
<p>
all 操作的帮助命令
all 操作的帮助命令
</p>
</td>
</tr>
Expand Down Expand Up @@ -135,7 +120,6 @@ The kubeconfig file to use when talking to the cluster. If the flag is not set,
<!--
### 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,36 +1,22 @@
<!--
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.
-->


<!--
Upload the kubeadm ClusterConfiguration to a ConfigMap
-->
将 kubeadm ClusterConfiguration 上传到 ConfigMap
将 kubeadm ClusterConfiguration 上传到 ConfigMap。

<!--
### Synopsis
-->

### 概要

<!--
Upload the kubeadm ClusterConfiguration to a ConfigMap called kubeadm-config in the kube-system namespace. This enables correct configuration of system components and a seamless user experience when upgrading.
-->

将 kubeadm ClusterConfiguration 上传到 kube-system 命名空间中名为 kubeadm-config 的 ConfigMap 中。
这样就可以正确配置系统组件,并在升级时提供无缝的用户体验。

<!--
Alternatively, you can use kubeadm config.
-->

另外,可以使用 kubeadm 配置。

```
Expand All @@ -40,13 +26,11 @@ kubeadm init phase upload-config kubeadm [flags]
<!--
### Examples
-->

### 示例

<!--
# upload the configuration of your cluster
-->

```
# 上传集群配置
kubeadm init phase upload-config --config=myConfig.yaml
Expand All @@ -55,7 +39,6 @@ kubeadm init phase upload-config --config=myConfig.yaml
<!--
### Options
-->

### 选项

<table style="width: 100%; table-layout: fixed;">
Expand Down Expand Up @@ -117,7 +100,7 @@ Don't apply any changes; just output what would be done.
help for kubeadm
-->
<p>
kubeadm 操作的帮助命令
kubeadm 操作的帮助命令
</p>
</td>
</tr>
Expand Down Expand Up @@ -147,7 +130,6 @@ The kubeconfig file to use when talking to the cluster. If the flag is not set,
<!--
### 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,19 +1,7 @@
<!--
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.
-->


<!--
Upload the kubelet component config to a ConfigMap
-->
将 kubelet 组件配置上传到 ConfigMap
将 kubelet 组件配置上传到 ConfigMap

<!--
### Synopsis
Expand Down Expand Up @@ -63,7 +51,9 @@ kubeadm init phase upload-config kubelet --config kubeadm.yaml
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<!-- Path to a kubeadm configuration file. -->
<!--
Path to a kubeadm configuration file.
-->
<p>
到 kubeadm 配置文件的路径。
</p>
Expand Down Expand Up @@ -104,9 +94,11 @@ Don't apply any changes; just output what would be done.
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<!-- help for kubelet -->
<!--
help for kubelet
-->
<p>
kubelet 操作的帮助命令
kubelet 操作的帮助命令
</p>
</td>
</tr>
Expand Down Expand Up @@ -145,11 +137,13 @@ The kubeconfig file to use when talking to the cluster. If the flag is not set,
<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></td><td style="line-height: 130%; word-wrap: break-word;">
<!--
[EXPERIMENTAL] The path to the 'real' host root filesystem.
-->
<p>[实验] 到 '真实' 主机根文件系统的路径。</p>
</td>
</tr>

</tbody>
</table>

13 changes: 6 additions & 7 deletions content/zh-cn/docs/reference/setup-tools/kubeadm/kubeadm-init.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ If your configuration is not using the latest version it is **recommended** that
the [kubeadm config migrate](/docs/reference/setup-tools/kubeadm/kubeadm-config/) command.
For more information on the fields and usage of the configuration you can navigate to our
[API reference page](/docs/reference/config-api/kubeadm-config.v1beta3/).
[API reference page](/docs/reference/config-api/kubeadm-config.v1beta4/).
-->
可以使用 [kubeadm config print](/zh-cn/docs/reference/setup-tools/kubeadm/kubeadm-config/)
命令打印出默认配置。
Expand All @@ -260,7 +260,7 @@ For more information on the fields and usage of the configuration you can naviga
[kubeadm config migrate](/zh-cn/docs/reference/setup-tools/kubeadm/kubeadm-config/)
命令进行迁移。

关于配置的字段和用法的更多信息,你可以访问 [API 参考页面](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta3/)
关于配置的字段和用法的更多信息,你可以访问 [API 参考页面](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta4/)

<!--
### Using kubeadm init with feature gates {#feature-gates}
Expand All @@ -278,12 +278,12 @@ Kubeadm 支持一组独有的特性门控,只能在 `kubeadm init` 创建集
<!--
To pass a feature gate you can either use the `--feature-gates` flag for
`kubeadm init`, or you can add items into the `featureGates` field when you pass
a [configuration file](/docs/reference/config-api/kubeadm-config.v1beta3/#kubeadm-k8s-io-v1beta3-ClusterConfiguration)
a [configuration file](/docs/reference/config-api/kubeadm-config.v1beta4/#kubeadm-k8s-io-v1beta4-ClusterConfiguration)
using `--config`.
-->
你可以使用 `--feature-gates` 标志来为 `kubeadm init` 设置特性门控,
或者你可以在用 `--config`
传递[配置文件](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta3/#kubeadm-k8s-io-v1beta3-ClusterConfiguration)时添加条目到
传递[配置文件](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta4/#kubeadm-k8s-io-v1beta4-ClusterConfiguration)时添加条目到
`featureGates` 字段中。

<!--
Expand Down Expand Up @@ -635,10 +635,9 @@ kubeadm init phase upload-certs --upload-certs --config=SOME_YAML_FILE
{{< note >}}
<!--
A predefined `certificateKey` can be provided in `InitConfiguration` when passing the
[configuration file](https://kubernetes.io/docs/reference/config-api/kubeadm-config.v1beta3/) with `--config`.
[configuration file](/docs/reference/config-api/kubeadm-config.v1beta4/) with `--config`.
-->
在使用 `--config`
传递[配置文件](https://kubernetes.io/zh-cn/docs/reference/config-api/kubeadm-config.v1beta3/)时,
在使用 `--config` 传递[配置文件](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta4/)时,
可以在 `InitConfiguration` 中提供预定义的 `certificateKey`
{{< /note >}}

Expand Down

0 comments on commit f554e20

Please sign in to comment.