Skip to content

Commit 2316eb1

Browse files
authored
Merge pull request #36580 from Michelle951/michelle08
[zh]sync kubeadm_init_phase_kubelet-start.md
2 parents cc25397 + bf60172 commit 2316eb1

File tree

1 file changed

+24
-18
lines changed

1 file changed

+24
-18
lines changed

content/zh-cn/docs/reference/setup-tools/kubeadm/generated/kubeadm_init_phase_kubelet-start.md

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
<!--
2-
The file is auto-generated from the Go source code of the component using a generic
3-
[generator](https://github.com/kubernetes-sigs/reference-docs/). To learn how
4-
to generate the reference documentation, please read
5-
[Contributing to the reference documentation](/docs/contribute/generate-ref-docs/).
6-
To update the reference conent, please follow the
7-
[Contributing upstream](/docs/contribute/generate-ref-docs/contribute-upstream/)
8-
guide. You can file document formatting bugs against the
9-
[reference-docs](https://github.com/kubernetes-sigs/reference-docs/) project.
10-
-->
11-
12-
131
<!--
142
Write kubelet settings and (re)start the kubelet
153
-->
@@ -34,22 +22,22 @@ kubeadm init phase kubelet-start [flags]
3422
<!--
3523
### Examples
3624
-->
37-
3825
### 示例
3926

4027
<!--
41-
# Writes a dynamic environment file with kubelet flags from a InitConfiguration file.
28+
```
29+
# Writes a dynamic environment file with kubelet flags from a InitConfiguration file.
30+
kubeadm init phase kubelet-start --config config.yaml
31+
```
4232
-->
43-
4433
```
45-
# InitConfiguration 文件中写入带有 kubelet 参数的动态环境文件
34+
# 将来自 InitConfiguration 文件中的 kubelet 参数写入一个动态环境文件
4635
kubeadm init phase kubelet-start --config config.yaml
4736
```
4837

4938
<!--
5039
### Options
5140
-->
52-
5341
### 选项
5442

5543
<table style="width: 100%; table-layout: fixed;">
@@ -79,7 +67,8 @@ kubeadm 配置文件的路径。
7967
<tr>
8068
<td></td><td style="line-height: 130%; word-wrap: break-word;">
8169
<!--
82-
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.
70+
Path to the CRI socket to connect. If empty kubeadm will try to auto-detect this value; use this option only if
71+
you have more than one CRI installed or if you have non-standard CRI socket.
8372
-->
8473
<p>
8574
连接到 CRI 套接字的路径。如果为空,则 kubeadm 将尝试自动检测该值;仅当安装了多个 CRI 或具有非标准 CRI 套接字时,才使用此选项。
@@ -115,6 +104,23 @@ Specify the node name.
115104
</td>
116105
</tr>
117106

107+
<tr>
108+
<td colspan="2">--patches string</td>
109+
</tr>
110+
<tr>
111+
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
112+
<!--
113+
Path to a directory that contains files named &quot;target[suffix][+patchtype].extension&quot;. For example, &quot;kube-apiserver0+merge.yaml&quot; or just &quot;etcd.json&quot;. &quot;target&quot; can be one of &quot;kube-apiserver&quot;, &quot;kube-controller-manager&quot;, &quot;kube-scheduler&quot;, &quot;etcd&quot;, &quot;kubeletconfiguration&quot;. &quot;patchtype&quot; can be one of &quot;strategic&quot;, &quot;merge&quot; or &quot;json&quot; and they match the patch formats supported by kubectl. The default &quot;patchtype&quot; is &quot;strategic&quot;. &quot;extension&quot; must be either &quot;json&quot; or &quot;yaml&quot;. &quot;suffix&quot; is an optional string that can be used to determine which patches are applied first alpha-numerically.
114+
-->
115+
目录路径,指向包含名为 “target[suffix][+patchtype].extension” 的文件的目录。
116+
例如,"kube-apiserver0+merge.yaml" 或 "etcd.json" 这种简单形式。
117+
"target" 可以是 “kube-apiserver”、“kube-controller-manager”、“kube-scheduler”、“etcd”、“kubeletconfiguration” 之一,
118+
"patchtype" 可以是 "strategic"、"merge" 或 "json" 之一,并且它们与 kubectl 支持的补丁格式匹配。
119+
默认的 "patchtype" 为 "strategic"。 "extension" 必须为 "json" 或 "yaml"。
120+
"suffix" 是一个可选字符串,可用于确定按字母顺序首先应用哪些补丁。
121+
</p></td>
122+
</tr>
123+
118124
</tbody>
119125
</table>
120126

0 commit comments

Comments
 (0)