Skip to content

Commit 6c192d5

Browse files
committed
[zh] Sync config-api/kubelet-config.v1beta1.md
1 parent 37c29df commit 6c192d5

File tree

1 file changed

+181
-15
lines changed

1 file changed

+181
-15
lines changed

content/zh-cn/docs/reference/config-api/kubelet-config.v1beta1.md

Lines changed: 181 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -521,13 +521,13 @@ providers is a list of credential provider plugins that will be enabled by the k
521521
Multiple providers may match against a single image, in which case credentials
522522
from all providers will be returned to the kubelet. If multiple providers are called
523523
for a single image, the results are combined. If providers return overlapping
524-
auth keys, the value from the provider earlier in this list is used.
524+
auth keys, the value from the provider earlier in this list is attempted first.
525525
-->
526526
<p>
527527
<code>providers</code> 是一组凭据提供者插件,这些插件会被 kubelet 启用。
528528
多个提供者可以匹配到同一镜像上,这时,来自所有提供者的凭据信息都会返回给 kubelet。
529529
如果针对同一镜像调用了多个提供者,则结果会被组合起来。如果提供者返回的认证主键有重复,
530-
列表中先出现的提供者所返回的值将被使用
530+
列表中先出现的提供者所返回的值将被首先尝试
531531
</p>
532532
</td>
533533
</tr>
@@ -895,6 +895,68 @@ Default: 10
895895
</td>
896896
</tr>
897897

898+
<tr><td><code>imagePullCredentialsVerificationPolicy</code><br/>
899+
<a href="#kubelet-config-k8s-io-v1beta1-ImagePullCredentialsVerificationPolicy"><code>ImagePullCredentialsVerificationPolicy</code></a>
900+
</td>
901+
<td>
902+
<p>
903+
<!--
904+
imagePullCredentialsVerificationPolicy determines how credentials should be
905+
verified when pod requests an image that is already present on the node:
906+
-->
907+
<code>imagePullCredentialsVerificationPolicy</code> 决定当 Pod 请求节点上已存在的镜像时,凭据应被如何验证:
908+
</p>
909+
<ul>
910+
<li>NeverVerify
911+
<!--
912+
anyone on a node can use any image present on the node
913+
-->
914+
节点上的任何人都可以使用该节点上存在的所有镜像
915+
</li>
916+
<li>NeverVerifyPreloadedImages
917+
<!--
918+
images that were pulled to the node by something else than the kubelet
919+
can be used without reverifying pull credentials
920+
-->
921+
由 kubelet 以外的方式拉取到节点上的镜像可以在不重新验证凭据的情况下使用
922+
</li>
923+
<li>NeverVerifyAllowlistedImages
924+
<!--
925+
like &quot;NeverVerifyPreloadedImages&quot; but only node images from
926+
<code>preloadedImagesVerificationAllowlist</code> don't require reverification
927+
-->
928+
类似于 &quot;NeverVerifyPreloadedImages&quot;,但只有源于
929+
<code>preloadedImagesVerificationAllowlist</code> 的节点镜像无需重新验证
930+
</li>
931+
<li>AlwaysVerify
932+
<!--
933+
all images require credential reverification
934+
-->
935+
所有镜像都需要重新验证凭据
936+
</li>
937+
</ul>
938+
</td>
939+
</tr>
940+
<tr><td><code>preloadedImagesVerificationAllowlist</code><br/>
941+
<code>[]string</code>
942+
</td>
943+
<td>
944+
<p>
945+
<!--
946+
preloadedImagesVerificationAllowlist specifies a list of images that are
947+
exempted from credential reverification for the &quot;NeverVerifyAllowlistedImages&quot;
948+
<code>imagePullCredentialsVerificationPolicy</code>.
949+
The list accepts a full path segment wildcard suffix &quot;/*&quot;.
950+
Only use image specs without an image tag or digest.
951+
-->
952+
<code>preloadedImagesVerificationAllowlist</code> 指定一个镜像列表,对于
953+
<code>imagePullCredentialsVerificationPolicy</code> 设置为
954+
&quot;NeverVerifyAllowlistedImages&quot; 时,这些镜像可免于重新验证凭据。
955+
此列表支持以 &quot;/*&quot; 结尾的路径通配符。请仅使用不带镜像标签或摘要的镜像规约。
956+
</p>
957+
</td>
958+
</tr>
959+
898960
<tr><td><code>eventRecordQPS</code><br/>
899961
<code>int32</code>
900962
</td>
@@ -1286,11 +1348,9 @@ Default: &quot;cgroupfs&quot;
12861348
<td>
12871349
<!--
12881350
cpuManagerPolicy is the name of the policy to use.
1289-
Requires the CPUManager feature gate to be enabled.
12901351
Default: &quot;None&quot;
12911352
-->
1292-
<p><code>cpuManagerPolicy</code> 是要使用的策略名称。需要启用 <code>CPUManager</code>
1293-
特性门控。</p>
1353+
<p><code>cpuManagerPolicy</code> 是要使用的策略名称。</p>
12941354
<p>默认值:&quot;None&quot;</p>
12951355
</td>
12961356
</tr>
@@ -1328,12 +1388,10 @@ On cgroup v2 linux, null / absent, true and false are allowed. The default value
13281388
<!--
13291389
cpuManagerPolicyOptions is a set of key=value which allows to set extra options
13301390
to fine tune the behaviour of the cpu manager policies.
1331-
Requires both the &quot;CPUManager&quot; and &quot;CPUManagerPolicyOptions&quot; feature gates to be enabled.
13321391
Default: nil
13331392
-->
13341393
<p><code>cpuManagerPolicyOptions</code> 是一组 <code>key=value</code> 键值映射,
1335-
容许通过额外的选项来精细调整 CPU 管理器策略的行为。需要 <code>CPUManager</code> 和
1336-
<code>CPUManagerPolicyOptions</code> 两个特性门控都被启用。</p>
1394+
容许通过额外的选项来精细调整 CPU 管理器策略的行为。</p>
13371395
<p>默认值:nil</p>
13381396
</td>
13391397
</tr>
@@ -1344,11 +1402,10 @@ Default: nil
13441402
<td>
13451403
<!--
13461404
cpuManagerReconcilePeriod is the reconciliation period for the CPU Manager.
1347-
Requires the CPUManager feature gate to be enabled.
13481405
Default: &quot;10s&quot;
13491406
-->
13501407
<p><code>cpuManagerReconcilePeriod</code> 是 CPU 管理器的协调周期时长。
1351-
要求启用 <code>CPUManager</code> 特性门控。默认值:&quot;10s&quot;</p>
1408+
默认值:&quot;10s&quot;</p>
13521409
</td>
13531410
</tr>
13541411

@@ -1777,10 +1834,11 @@ Default: nil
17771834
<!--
17781835
evictionPressureTransitionPeriod is the duration for which the kubelet has to wait
17791836
before transitioning out of an eviction pressure condition.
1837+
A duration of 0s will be converted to the default value of 5m
17801838
Default: &quot;5m&quot;
17811839
-->
17821840
<p><code>evictionPressureTransitionPeriod</code> 设置 kubelet
1783-
离开驱逐压力状况之前必须要等待的时长。</p>
1841+
离开驱逐压力状况之前必须要等待的时长。0s 的时长将被转换为默认值 5m。</p>
17841842
<p>默认值:&quot;5m&quot;</p>
17851843
</td>
17861844
</tr>
@@ -1820,6 +1878,31 @@ Default: nil
18201878
</td>
18211879
</tr>
18221880

1881+
<tr><td><code>mergeDefaultEvictionSettings</code><br/>
1882+
<code>bool</code>
1883+
</td>
1884+
<td>
1885+
<p>
1886+
<!--
1887+
mergeDefaultEvictionSettings indicates that defaults for the evictionHard, evictionSoft, evictionSoftGracePeriod, and evictionMinimumReclaim
1888+
fields should be merged into values specified for those fields in this configuration.
1889+
Signals specified in this configuration take precedence.
1890+
Signals not specified in this configuration inherit their defaults.
1891+
If false, and if any signal is specified in this configuration then other signals that
1892+
are not specified in this configuration will be set to 0.
1893+
It applies to merging the fields for which the default exists, and currently only evictionHard has default values.
1894+
Default: false
1895+
-->
1896+
<code>mergeDefaultEvictionSettings</code> 表示是否应将 evictionHard、evictionSoft、
1897+
evictionSoftGracePeriod 和 evictionMinimumReclaim 字段的默认值合并到此配置中为这些字段指定的取值中。
1898+
在此配置中显式指定的信号优先生效。未在此配置中指定的信号将继承其默认值。
1899+
如果设置为 false,并且此配置中指定了任一信号,则此配置中未指定的其他信号将被设置为 0。
1900+
此字段适用于合并存在默认值的字段,目前仅 evictionHard 有默认值。
1901+
默认值:false。
1902+
</p>
1903+
</td>
1904+
</tr>
1905+
18231906
<tr><td><code>podsPerCore</code><br/>
18241907
<code>int32</code>
18251908
</td>
@@ -2297,9 +2380,13 @@ Default: true
22972380
<!--
22982381
enableSystemLogQuery enables the node log query feature on the /logs endpoint.
22992382
EnableSystemLogHandler has to be enabled in addition for this feature to work.
2383+
Enabling this feature has security implications. The recommendation is to enable it on a need basis for debugging
2384+
purposes and disabling otherwise.
23002385
-->
23012386
<p><code>enableSystemLogQuery</code> 启用在 /logs 端点上的节点日志查询功能。
2302-
此外,还必须启用 enableSystemLogHandler 才能使此功能起作用。</p>
2387+
此外,还必须启用 enableSystemLogHandler 才能使此功能起作用。
2388+
启用此特性具有安全隐患。建议仅在调试需要时才启用,其他情况下应禁用。
2389+
</p>
23032390
<p>默认值:false</p>
23042391
</td>
23052392
</tr>
@@ -2520,7 +2607,7 @@ Default: 0.8
25202607
</tr>
25212608

25222609
<tr><td><code>registerWithTaints</code><br/>
2523-
<a href="https://kubernetes.io/zh-cn/docs/reference/generated/kubernetes-api/v1.32/#taint-v1-core"><code>[]core/v1.Taint</code></a>
2610+
<a href="https://kubernetes.io/zh-cn/docs/reference/generated/kubernetes-api/v1.33/#taint-v1-core"><code>[]core/v1.Taint</code></a>
25242611
</td>
25252612
<td>
25262613
<!--
@@ -2632,6 +2719,20 @@ Default: false
26322719
</p>
26332720
</td>
26342721
</tr>
2722+
2723+
<tr><td><code>userNamespaces</code><br/>
2724+
<a href="#kubelet-config-k8s-io-v1beta1-UserNamespaces"><code>UserNamespaces</code></a>
2725+
</td>
2726+
<td>
2727+
<p>
2728+
<!--
2729+
UserNamespaces contains User Namespace configurations.
2730+
-->
2731+
<code>userNamespaces</code> 包含用户命名空间配置。
2732+
</p>
2733+
</td>
2734+
</tr>
2735+
26352736
</tbody>
26362737
</table>
26372738

@@ -2654,7 +2755,7 @@ SerializedNodeConfigSource 允许对 `v1.NodeConfigSource` 执行序列化操作
26542755
<tr><td><code>kind</code><br/>string</td><td><code>SerializedNodeConfigSource</code></td></tr>
26552756

26562757
<tr><td><code>source</code><br/>
2657-
<a href="https://kubernetes.io/zh-cn/docs/reference/generated/kubernetes-api/v1.32/#nodeconfigsource-v1-core"><code>core/v1.NodeConfigSource</code></a>
2758+
<a href="https://kubernetes.io/zh-cn/docs/reference/generated/kubernetes-api/v1.33/#nodeconfigsource-v1-core"><code>core/v1.NodeConfigSource</code></a>
26582759
</td>
26592760
<td>
26602761
<!--
@@ -2726,11 +2827,13 @@ CredentialProvider 代表的是要被 kubelet 调用的一个 exec 插件。
27262827
name is the required name of the credential provider. It must match the name of the
27272828
provider executable as seen by the kubelet. The executable must be in the kubelet's
27282829
bin directory (set by the --image-credential-provider-bin-dir flag).
2830+
Required to be unique across all providers.
27292831
-->
27302832
<p>
27312833
<code>name</code> 是凭据提供者的名称(必需)。此名称必须与 kubelet
27322834
所看到的提供者可执行文件的名称匹配。可执行文件必须位于 kubelet 的
27332835
<code>bin</code> 目录(通过 <code>--image-credential-provider-bin-dir</code> 设置)下。
2836+
在所有提供程序中,名称是唯一的。
27342837
</p>
27352838
</td>
27362839
</tr>
@@ -2893,6 +2996,26 @@ ExecEnvVar 用来在执行基于 exec 的凭据插件时设置环境变量。
28932996
</tbody>
28942997
</table>
28952998

2999+
## `ImagePullCredentialsVerificationPolicy` {#kubelet-config-k8s-io-v1beta1-ImagePullCredentialsVerificationPolicy}
3000+
3001+
<!--
3002+
(Alias of `string`)
3003+
3004+
**Appears in:**
3005+
-->
3006+
`string` 的别名)
3007+
3008+
**出现在:**
3009+
3010+
- [KubeletConfiguration](#kubelet-config-k8s-io-v1beta1-KubeletConfiguration)
3011+
3012+
<p>
3013+
<!--
3014+
ImagePullCredentialsVerificationPolicy is an enum for the policy that is enforced
3015+
when pod is requesting an image that appears on the system
3016+
-->
3017+
ImagePullCredentialsVerificationPolicy 是一个枚举类型,用于指定在 Pod 请求系统上已存在的镜像时所强制执行的策略。
3018+
</p>
28963019

28973020
## `KubeletAnonymousAuthentication` {#kubelet-config-k8s-io-v1beta1-KubeletAnonymousAuthentication}
28983021

@@ -3169,7 +3292,7 @@ MemoryReservation 为每个 NUMA 节点设置不同类型的内存预留。
31693292
</tr>
31703293

31713294
<tr><td><code>limits</code> <B><!-- [Required] -->[必需]</B><br/>
3172-
<a href="https://kubernetes.io/zh-cn/docs/reference/generated/kubernetes-api/v1.32/#resourcelist-v1-core"><code>core/v1.ResourceList</code></a>
3295+
<a href="https://kubernetes.io/zh-cn/docs/reference/generated/kubernetes-api/v1.33/#resourcelist-v1-core"><code>core/v1.ResourceList</code></a>
31733296
</td>
31743297
<td>
31753298
<!--span class="text-muted">No description provided.</span-->
@@ -3273,3 +3396,46 @@ ShutdownGracePeriodByPodPriority 基于 Pod 关联的优先级类数值来为其
32733396
</tr>
32743397
</tbody>
32753398
</table>
3399+
3400+
## `UserNamespaces` {#kubelet-config-k8s-io-v1beta1-UserNamespaces}
3401+
3402+
<!--
3403+
**Appears in:**
3404+
-->
3405+
**出现在:**
3406+
3407+
- [KubeletConfiguration](#kubelet-config-k8s-io-v1beta1-KubeletConfiguration)
3408+
3409+
<p>
3410+
<!--
3411+
UserNamespaces contains User Namespace configurations.
3412+
-->
3413+
<code>UserNamespaces</code> 包含用户命名空间配置。
3414+
</p>
3415+
3416+
3417+
<table class="table">
3418+
<thead><tr><th width="30%"><!--Field-->字段</th><th><!--Description-->描述</th></tr></thead>
3419+
<tbody>
3420+
3421+
3422+
<tr><td><code>idsPerPod</code><br/>
3423+
<code>int64</code>
3424+
</td>
3425+
<td>
3426+
<!--
3427+
<p>IDsPerPod is the mapping length of UIDs and GIDs.
3428+
The length must be a multiple of 65536, and must be less than 1&lt;&lt;32.
3429+
On non-linux such as windows, only null / absent is allowed.</p>
3430+
<p>Changing the value may require recreating all containers on the node.</p>
3431+
<p>Default: 65536</p>
3432+
-->
3433+
<p><code>idsPerPod</code> 是 UID 和 GID 的映射长度。
3434+
长度值必须是 65536 的倍数,且必须小于 1&lt;&lt;32。
3435+
在非 Linux 系统(如 Windows)上,仅允许空或不设置。</p>
3436+
<p>更改此值可能需要重新创建节点上的所有容器。</p>
3437+
<p>默认值:65536</p>
3438+
</td>
3439+
</tr>
3440+
</tbody>
3441+
</table>

0 commit comments

Comments
 (0)