Skip to content

Commit fc59b00

Browse files
committed
[zh-cn] sync user-namespaces.md
1 parent e8bb8cc commit fc59b00

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

content/zh-cn/docs/concepts/workloads/pods/user-namespaces.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ to the `kubelet` user:
327327

328328
<!--
329329
* The subordinate ID count must be a multiple of 65536
330+
(for Kubernetes {{< skew currentVersion >}} the subordinate ID count for each Pod is hard-coded
331+
to 65536).
330332
331333
* The subordinate ID count must be at least `65536 x <maxPods>` where `<maxPods>`
332334
is the maximum number of pods that can run on the node.
@@ -335,7 +337,8 @@ to the `kubelet` user:
335337
matter if other users have user ID ranges that don't align with the group ID
336338
ranges.
337339
-->
338-
* 从属 ID 计数必须是 65536 的倍数
340+
* 从属 ID 计数必须是 65536 的倍数(对于 Kubernetes {{< skew currentVersion >}},
341+
每个 Pod 的从属 ID 数量被硬编码为 65536)。
339342

340343
* 从属 ID 计数必须至少为 `65536 x <maxPods>`,其中 `<maxPods>` 是节点上可以运行的最大 Pod 数量。
341344

@@ -362,15 +365,17 @@ these entries for the `kubelet` user:
362365
# name:firstID:count of IDs
363366
# where
364367
# - firstID is 65536 (the minimum value possible)
365-
# - count of IDs is 110 (default limit for number of) * 65536
368+
# - count of IDs is 110 * 65536
369+
# (110 is the default limit for number of pods on the node)
366370
```
367371
-->
368372
```
369373
# 格式为:
370374
# name:firstID:count of IDs
371-
# 在哪里
375+
# 其中
372376
# - firstID 是 65536 (可能的最小值)
373-
# - IDs 的数量是 110(默认数量限制)* 65536
377+
# - ID 的数量是 110 * 65536(110 是节点上 Pod 数量的默认限制)
378+
374379
kubelet:65536:7208960
375380
```
376381

0 commit comments

Comments
 (0)