Skip to content

Commit 28e405d

Browse files
authored
Merge pull request #33945 from kinzhi/kinzhi126
[zh]Update content/zh/docs/reference/config-api/kubeadm-config.v1beta2.md
2 parents f189916 + 9c71a06 commit 28e405d

File tree

2 files changed

+28
-26
lines changed

2 files changed

+28
-26
lines changed

content/zh/docs/reference/config-api/kubeadm-config.v1beta2.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ https://godoc.org/k8s.io/kubelet/config/v1beta1#KubeletConfiguration。</p>
292292
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">criSocket</span>:<span style="color:#bbb"> </span><span style="color:#d14">&#34;/var/run/dockershim.sock&#34;</span><span style="color:#bbb">
293293
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">taints</span>:<span style="color:#bbb">
294294
</span><span style="color:#bbb"> </span>- <span style="color:#000;font-weight:bold">key</span>:<span style="color:#bbb"> </span><span style="color:#d14">&#34;kubeadmNode&#34;</span><span style="color:#bbb">
295-
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">value</span>:<span style="color:#bbb"> </span><span style="color:#d14">&#34;master&#34;</span><span style="color:#bbb">
295+
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">value</span>:<span style="color:#bbb"> </span><span style="color:#d14">&#34;someValue&#34;</span><span style="color:#bbb">
296296
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">effect</span>:<span style="color:#bbb"> </span><span style="color:#d14">&#34;NoSchedule&#34;</span><span style="color:#bbb">
297297
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">kubeletExtraArgs</span>:<span style="color:#bbb">
298298
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">v</span>:<span style="color:#bbb"> </span><span style="color:#099">4</span><span style="color:#bbb">
@@ -1274,9 +1274,10 @@ cluster information.
12741274
<p>
12751275
<!--
12761276
<code>tlsBootstrapToken</code> is a token used for TLS bootstrapping.
1277-
If <code>bootstrapToken</code> is set, this field is defaulted to <code>.bootstrapToken.token</code>, but
1278-
can be overridden. If <code>file<code> is set, this field &lowast;&lowast;must be set&lowast;&lowast; in case the KubeConfigFile
1279-
does not contain any other authentication information
1277+
If <code>bootstrapToken</code> is set, this field is defaulted to <code>.bootstrapToken.token</code>,
1278+
but can be overridden.
1279+
If <code>file</code> is set, this field <strong>must be set</strong> in case the KubeConfigFile does not
1280+
contain any other authentication information.
12801281
-->
12811282
<code>tlsBootstrapToken</code> 是 TLS 启动引导过程中使用的令牌。
12821283
如果设置了 <code>bootstrapToken</code>,则此字段默认值为 <code>.bootstrapToken.token</code>,
@@ -1783,29 +1784,28 @@ Defaults to the hostname of the node if not provided.</p>
17831784
</td>
17841785
<td>
17851786
<!--
1786-
<p><code>criSocket<code> is used to retrieve container runtime information.
1787-
This information will be annotated to the Node API object, for later re-use</p>
1787+
<p><code>criSocket</code> is used to retrieve container runtime information. This information will
1788+
be annotated to the Node API object, for later re-use.</p>
17881789
-->
17891790
<p><code>criSocket</code> 用来读取容器运行时的信息。
1790-
此信息会被以注解的方式添加到 Node API 对象至上,用于后续用途。</p>
1791+
此信息会被以注解的方式添加到 Node API 对象之上,用于后续用途。</p>
17911792
</td>
17921793
</tr>
17931794
<tr><td><code>taints</code> <B><!--[Required]-->[必需]</B><br/>
17941795
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#taint-v1-core"><code>[]core/v1.Taint</code></a>
17951796
</td>
17961797
<td>
1797-
<!--
1798+
<!--
17981799
<p><code>taints</code> specifies the taints the Node API object should be registered with.
1799-
If this field is unset, i.e. nil, in the <code>kubeadm init</code> process it will be defaulted to
1800-
<code>'node-role.kubernetes.io/master=&quot;&quot;'</code>.
1801-
If you don't want to taint your control-plane node, set this field to an empty list,
1802-
i.e. <code>taints: []</code> in the YAML file. This field is solely used for Node registration.</p>
1803-
-->
1800+
If this field is unset, i.e. nil, in the <code>kubeadm init</code> process it will be defaulted with
1801+
a control-plane taint for control-plane nodes. If you don't want to taint your control-plane
1802+
node, set this field to an empty list, i.e. <code>taints: []</code>, in the YAML file. This field is
1803+
solely used for Node registration.</p>
1804+
-->
18041805
<p><code>tains</code> 设定 Node API 对象被注册时要附带的污点。
1805-
若未设置此字段(即字段值为 null), 在 <code>kubeadm init</code> 期间,节点与控制面之间的通信。
1806-
默认值为污点默认设置为 <code>taints: ['node-role.kubernetes.io/master:&quot;&quot;']</code>。
1807-
如果你不希望为控制面节点设置污点,可以在 YAML 中将此字段设置为空的列表,即
1808-
<code>taints: []</code>。 此字段仅用在 Node 注册期间。</p>
1806+
若未设置此字段(即字段值为 null),在 <code>kubeadm init</code> 期间,默认为控制平面节点添加控制平面污点。
1807+
如果你不想污染你的控制平面节点,可以将此字段设置为空列表(即 YAML 文件中的 <code>taints: []</code>),
1808+
这个字段只用于节点注册。</p>
18091809
</td>
18101810
</tr>
18111811
<tr><td><code>kubeletExtraArgs</code> <B><!--[Required]-->[必需]</B><br/>

content/zh/docs/reference/config-api/kubeadm-config.v1beta3.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ https://godoc.org/k8s.io/kubelet/config/v1beta1#KubeletConfiguration。</p>
313313
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">criSocket</span>:<span style="color:#bbb"> </span><span style="color:#d14">&#34;/var/run/dockershim.sock&#34;</span><span style="color:#bbb">
314314
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">taints</span>:<span style="color:#bbb">
315315
</span><span style="color:#bbb"> </span>- <span style="color:#000;font-weight:bold">key</span>:<span style="color:#bbb"> </span><span style="color:#d14">&#34;kubeadmNode&#34;</span><span style="color:#bbb">
316-
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">value</span>:<span style="color:#bbb"> </span><span style="color:#d14">&#34;master&#34;</span><span style="color:#bbb">
316+
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">value</span>:<span style="color:#bbb"> </span><span style="color:#d14">&#34;someValue&#34;</span><span style="color:#bbb">
317317
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">effect</span>:<span style="color:#bbb"> </span><span style="color:#d14">&#34;NoSchedule&#34;</span><span style="color:#bbb">
318318
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">kubeletExtraArgs</span>:<span style="color:#bbb">
319319
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">v</span>:<span style="color:#bbb"> </span><span style="color:#099">4</span><span style="color:#bbb">
@@ -1655,15 +1655,17 @@ This information will be annotated to the Node API object, for later re-use</p--
16551655
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#taint-v1-core"><code>[]core/v1.Taint</code></a>
16561656
</td>
16571657
<td>
1658-
<!--p><code>tains</code> specifies the taints the Node API object should be registered with.
1659-
If this field is unset, i.e. nil, in the <code>kubeadm init</code> process it will be defaulted to
1660-
<code>taints: [&quot;node-role.kubernetes.io/master:&quot;&quot;]</code>.
1661-
If you don't want to taint your control-plane node, set this field to an empty slice,
1662-
i.e. <code>taints: []</code> in the YAML file. This field is solely used for Node registration.</p-->
1658+
<!--
1659+
<p><code>tains</code> specifies the taints the Node API object should be registered with.
1660+
If this field is unset, i.e. nil, in the <code>kubeadm init</code> process it will be defaulted
1661+
with a control-plane taint for control-plane nodes.
1662+
If you don't want to taint your control-plane node, set this field to an empty list,
1663+
i.e. <code>taints: []</code> in the YAML file. This field is solely used for Node registration.</p>
1664+
-->
16631665
<p><code>tains</code> 设定 Node API 对象被注册时要附带的污点。
1664-
若未设置此字段(即字段值为 null), 在 <code>kubeadm init</code> 期间,节点与控制面之间的通信。默认值为污点默认设置为 <code>taints: [&quot;node-role.kubernetes.io/master:&quot;&quot;]</code>
1665-
如果你不希望为控制面节点设置污点,可以在 YAML 中将此字段设置为空的列表,即
1666-
<code>taints: []</code>。 此字段仅用在 Node 注册期间。</p>
1666+
若未设置此字段(即字段值为 null)在 <code>kubeadm init</code> 期间,默认为控制平面节点添加控制平面污点
1667+
如果你不想污染你的控制平面节点,可以将此字段设置为空列表(即 YAML 文件中的 <code>taints: []</code>),
1668+
这个字段只用于节点注册。</p>
16671669
</td>
16681670
</tr>
16691671
<tr><td><code>kubeletExtraArgs</code><br/>

0 commit comments

Comments
 (0)