Skip to content

Commit cf5a889

Browse files
authored
Merge pull request #36779 from Michelle951/michelle004
[zh] sync kubeadm-config.v1beta3.m
2 parents 4efa02e + 9c3b5f5 commit cf5a889

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ The value must be one of "Always", "Never" or "IfNotPre
5252
&quot;IfNotPresent&quot; is the default, which has been the existing behavior prior to this addition.</li>
5353
<li>Add &quot;InitConfiguration.Patches.Directory&quot;, &quot;JoinConfiguration.Patches.Directory&quot; to allow
5454
the user to configure a directory from which to take patches for components deployed by kubeadm.</li>
55-
<li>Move the BootstrapToken&lowast; API and related utilities out of the &quot;kubeadm&quot; API group to a new group
56-
&quot;bootstraptoken&quot;. The kubeadm API version v1beta3 no longer contains the BootstrapToken&lowast; structures.</li>
55+
<li>Move the BootstrapToken* API and related utilities out of the &quot;kubeadm&quot; API group to a new group
56+
&quot;bootstraptoken&quot;. The kubeadm API version v1beta3 no longer contains the BootstrapToken* structures.</li>
5757
-->
5858
<li>添加了 &quot;InitConfiguration.nodeRegistration.imagePullPolicy&quot;
5959
&quot;JoinConfiguration.nodeRegistration.imagePullPolicy&quot;
@@ -63,9 +63,9 @@ the user to configure a directory from which to take patches for components depl
6363
<li>添加了 &quot;InitConfiguration.patches.directory&quot;,
6464
&quot;JoinConfiguration.patches.directory&quot; 以允许用户配置一个目录,
6565
kubeadm 将从该目录中提取组件的补丁包。</li>
66-
<li>BootstrapToken&lowast; API 和相关的工具被从 &quot;kubeadm&quot; API 组中移出,
66+
<li>BootstrapToken* API 和相关的工具被从 &quot;kubeadm&quot; API 组中移出,
6767
放到一个新的 &quot;bootstraptoken&quot; 组中。kubeadm API 版本 v1beta3 不再包含
68-
BootstrapToken&lowast; 结构。</li>
68+
BootstrapToken* 结构。</li>
6969
</ul>
7070
<!--
7171
<p>Migration from old kubeadm config versions</p>
@@ -165,8 +165,8 @@ between InitConfiguration and ClusterConfiguration is mandatory.</p>
165165
<h2>kubeadm init 配置类型</h2>
166166

167167
<p>当带有 <code>--config</code> 选项来执行 kubeadm init 命令时,可以使用下面的配置类型:
168-
`InitConfiguration``ClusterConfiguration``KubeProxyConfiguration``KubeletConfiguration`
169-
`InitConfiguration``ClusterConfiguration`
168+
<code>InitConfiguration</code>、<code>ClusterConfiguration</code>、<code>KubeProxyConfiguration</code>、<code>KubeletConfiguration</code>
169+
<code>InitConfiguration</code><code>ClusterConfiguration</code>
170170
之间只有一个是必须提供的。</p>
171171

172172
<pre style="background-color:#fff"><span style="color:#000;font-weight:bold">apiVersion</span>:<span style="color:#bbb"> </span>kubeadm.k8s.io/v1beta3<span style="color:#bbb">
@@ -225,7 +225,7 @@ including settings for:</p>
225225
Pod subnet or services subnet.</p>
226226
</li>
227227
-->
228-
<p>类型 `ClusterConfiguration` 用来定制集群范围的设置,具体包括以下设置:</p>
228+
<p>类型 <code>ClusterConfiguration</code> 用来定制集群范围的设置,具体包括以下设置:</p>
229229

230230
<ul>
231231
<li><p><code>networking</code>:其中包含集群的网络拓扑配置。使用这一部分可以定制 Pod 的
@@ -332,7 +332,7 @@ https://godoc.org/k8s.io/kubelet/config/v1beta1#KubeletConfiguration。</p>
332332
</span><span style="color:#bbb"></span><span style="color:#000;font-weight:bold">etcd</span>:<span style="color:#bbb">
333333
</span><span style="color:#bbb"> </span><span style="color:#998;font-style:italic"># one of local or external</span><span style="color:#bbb">
334334
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">local</span>:<span style="color:#bbb">
335-
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">imageRepository</span>:<span style="color:#bbb"> </span><span style="color:#d14">&#34;k8s.gcr.io&#34;</span><span style="color:#bbb">
335+
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">imageRepository</span>:<span style="color:#bbb"> </span><span style="color:#d14">&#34;registry.k8s.io&#34;</span><span style="color:#bbb">
336336
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">imageTag</span>:<span style="color:#bbb"> </span><span style="color:#d14">&#34;3.2.24&#34;</span><span style="color:#bbb">
337337
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">dataDir</span>:<span style="color:#bbb"> </span><span style="color:#d14">&#34;/var/lib/etcd&#34;</span><span style="color:#bbb">
338338
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">extraArgs</span>:<span style="color:#bbb">
@@ -386,7 +386,7 @@ https://godoc.org/k8s.io/kubelet/config/v1beta1#KubeletConfiguration。</p>
386386
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">readOnly</span>:<span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">false</span><span style="color:#bbb">
387387
</span><span style="color:#bbb"> </span><span style="color:#000;font-weight:bold">pathType</span>:<span style="color:#bbb"> </span>File<span style="color:#bbb">
388388
</span><span style="color:#bbb"></span><span style="color:#000;font-weight:bold">certificatesDir</span>:<span style="color:#bbb"> </span><span style="color:#d14">&#34;/etc/kubernetes/pki&#34;</span><span style="color:#bbb">
389-
</span><span style="color:#bbb"></span><span style="color:#000;font-weight:bold">imageRepository</span>:<span style="color:#bbb"> </span><span style="color:#d14">&#34;k8s.gcr.io&#34;</span><span style="color:#bbb">
389+
</span><span style="color:#bbb"></span><span style="color:#000;font-weight:bold">imageRepository</span>:<span style="color:#bbb"> </span><span style="color:#d14">&#34;registry.k8s.io&#34;</span><span style="color:#bbb">
390390
</span><span style="color:#bbb"></span><span style="color:#000;font-weight:bold">clusterName</span>:<span style="color:#bbb"> </span><span style="color:#d14">&#34;example-cluster&#34;</span><span style="color:#bbb">
391391
</span><span style="color:#bbb"></span>---<span style="color:#bbb">
392392
</span><span style="color:#bbb"></span><span style="color:#000;font-weight:bold">apiVersion</span>:<span style="color:#bbb"> </span>kubelet.config.k8s.io/v1beta1<span style="color:#bbb">
@@ -584,16 +584,16 @@ be used for assigning a stable DNS to the control plane.</li>
584584
<td>
585585
<!--
586586
<p><code>imageRepository</code> sets the container registry to pull images from.
587-
If empty, <code>k8s.gcr.io</code> will be used by default.
587+
If empty, <code>registry.k8s.io</code> will be used by default.
588588
In case of kubernetes version is a CI build (kubernetes version starts with <code>ci/</code>)
589589
<code>gcr.io/k8s-staging-ci-images</code> will be used as a default for control plane components
590-
and for kube-proxy, while <code>k8s.gcr.io</code> will be used for all the other images.</p>
590+
and for kube-proxy, while <code>registry.k8s.io</code> will be used for all the other images.</p>
591591
-->
592592
<p><code>imageRepository</code> 设置用来拉取镜像的容器仓库。
593-
如果此字段为空,默认使用 <code>k8s.gcr.io</code>。
593+
如果此字段为空,默认使用 <code>registry.k8s.io</code>。
594594
当 Kubernetes 用来执行 CI 构造时(Kubernetes 版本以 <code>ci/</code> 开头),
595595
将默认使用 <code>gcr.io/k8s-staging-ci-images</code> 来拉取控制面组件镜像,
596-
而使用 <code>k8s.gcr.io</code> 来拉取所有其他镜像。</p>
596+
而使用 <code>registry.k8s.io</code> 来拉取所有其他镜像。</p>
597597
</td>
598598
</tr>
599599
<tr><td><code>featureGates</code><br/>
@@ -1861,7 +1861,7 @@ of view and as an authentication method for the node in the bootstrap phase of
18611861
<thead><tr><th width="30%"><!--Field-->字段</th><th><!--Description-->描述</th></tr></thead>
18621862
<tbody>
18631863

1864-
<tr><td><code>id</code> <B><!--[Required]-->[必需]</B><br/>
1864+
<tr><td><code>-</code> <B><!--[Required]-->[必需]</B><br/>
18651865
<code>string</code>
18661866
</td>
18671867
<td>
@@ -1870,7 +1870,7 @@ of view and as an authentication method for the node in the bootstrap phase of
18701870

18711871
</td>
18721872
</tr>
1873-
<tr><td><code>secret</code> <B><!--[Required]-->[必需]</B><br/>
1873+
<tr><td><code>-</code> <B><!--[Required]-->[必需]</B><br/>
18741874
<code>string</code>
18751875
</td>
18761876
<td>

0 commit comments

Comments
 (0)