Skip to content

Commit 86993dc

Browse files
authored
Merge pull request #33839 from tengqm/update-kubeadm-configapi
Update kubeadm config API
2 parents c487772 + 10ae838 commit 86993dc

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ configuration types to be used during a <code>kubeadm init</code> run.</p>
143143
</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">
144144
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">taints</span>:<span style="color:#bbb">
145145
</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">
146-
</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">
146+
</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">
147147
</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">
148148
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">kubeletExtraArgs</span>:<span style="color:#bbb">
149149
</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">
@@ -876,7 +876,9 @@ cluster information.
876876
</td>
877877
<td>
878878
<p><code>tlsBootstrapToken</code> is a token used for TLS bootstrapping.
879-
If <code>bootstrapToken</code> is set, this field is defaulted to <code>.bootstrapToken.token</code>, but can be overridden. If <code>file</code> is set, this field <strong>must be set</strong> in case the KubeConfigFile does not
879+
If <code>bootstrapToken</code> is set, this field is defaulted to <code>.bootstrapToken.token</code>,
880+
but can be overridden.
881+
If <code>file</code> is set, this field <strong>must be set</strong> in case the KubeConfigFile does not
880882
contain any other authentication information.</p>
881883
</td>
882884
</tr>
@@ -1267,7 +1269,7 @@ Defaults to the hostname of the node if not provided.</p>
12671269
<code>string</code>
12681270
</td>
12691271
<td>
1270-
<p><code>criSocket<code> is used to retrieve container runtime information. This information will
1272+
<p><code>criSocket</code> is used to retrieve container runtime information. This information will
12711273
be annotated to the Node API object, for later re-use.</p>
12721274
</td>
12731275
</tr>
@@ -1276,9 +1278,9 @@ be annotated to the Node API object, for later re-use.</p>
12761278
</td>
12771279
<td>
12781280
<p><code>taints</code> specifies the taints the Node API object should be registered with.
1279-
If this field is unset, i.e. nil, in the <code>kubeadm init</code> process it will be defaulted to
1280-
<code>'node-role.kubernetes.io/master=&quot;&quot;'</code>. If you don't want to taint your control-plane node,
1281-
set this field to an empty list, i.e. <code>taints: []</code> in the YAML file. This field is
1281+
If this field is unset, i.e. nil, in the <code>kubeadm init</code> process it will be defaulted with
1282+
a control-plane taint for control-plane nodes. If you don't want to taint your control-plane
1283+
node, set this field to an empty list, i.e. <code>taints: []</code>, in the YAML file. This field is
12821284
solely used for Node registration.</p>
12831285
</td>
12841286
</tr>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ configuration types to be used during a <code>kubeadm init</code> run.</p>
152152
</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">
153153
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">taints</span>:<span style="color:#bbb">
154154
</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">
155-
</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">
155+
</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">
156156
</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">
157157
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">kubeletExtraArgs</span>:<span style="color:#bbb">
158158
</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">
@@ -1160,9 +1160,9 @@ This information will be annotated to the Node API object, for later re-use</p>
11601160
</td>
11611161
<td>
11621162
<p><code>tains</code> specifies the taints the Node API object should be registered with.
1163-
If this field is unset, i.e. nil, in the <code>kubeadm init</code> process it will be defaulted to
1164-
<code>taints: [&quot;node-role.kubernetes.io/master:&quot;&quot;]</code>.
1165-
If you don't want to taint your control-plane node, set this field to an empty slice,
1163+
If this field is unset, i.e. nil, in the <code>kubeadm init</code> process it will be defaulted
1164+
with a control-plane taint for control-plane nodes.
1165+
If you don't want to taint your control-plane node, set this field to an empty list,
11661166
i.e. <code>taints: []</code> in the YAML file. This field is solely used for Node registration.</p>
11671167
</td>
11681168
</tr>

0 commit comments

Comments
 (0)