Skip to content

Commit 788176c

Browse files
committed
KEP-127 (UserNS): allow customizing subids length
The number of subuids and subgids for each of pods is hard-coded to 65536, regardless to the total ID count specified in `/etc/subuid` and `/etc/subgid`: https://github.com/kubernetes/kubernetes/blob/v1.32.0/pkg/kubelet/userns/userns_manager.go#L211-L228 This is not enough for some images. Nested containerization needs a huge number of subids too. Signed-off-by: Akihiro Suda <[email protected]>
1 parent 62039f1 commit 788176c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

keps/sig-node/127-user-namespaces/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,8 @@ bool `pod.spec.hostUsers`.
335335
The mapping length will be 65536, mapping the range 0-65535 to the pod. This wide
336336
range makes sure most workloads will work fine. Additionally, we don't need to
337337
worry about fragmentation of IDs, as all pods will use the same length.
338+
The mapping length (multiple of 65536) will be customizable via a new
339+
`KubeletConfiguration` property `subidsPerPod`.
338340

339341
The mapping will be chosen by the kubelet, using a simple algorithm to give
340342
different pods in this category ("without" volumes) a non-overlapping mapping.

0 commit comments

Comments
 (0)