Skip to content

Commit 0321e92

Browse files
authored
Merge pull request kubernetes#3430 from giuseppe/userns-bump-size-to-65536
127-user-namespaces: round userns size to 65536
2 parents bd723c0 + c03da36 commit 0321e92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ on pods which use either no volumes or only volumes of the following types:
293293
This list of volumes was chosen as they can't be used to share files with other
294294
pods.
295295

296-
The mapping length will be 65535, mapping the range 0-65534 to the pod. This wide
296+
The mapping length will be 65536, mapping the range 0-65535 to the pod. This wide
297297
range makes sure most workloads will work fine. Additionally, we don't need to
298298
worry about fragmentation of IDs, as all pods will use the same length.
299299

@@ -302,7 +302,7 @@ different pods in this category ("without" volumes) a non-overlapping mapping.
302302
Giving non-overlapping mappings generates the best isolation for pods.
303303

304304
Furthermore, the node UID space of 2^32 can hold up to 2^16 pods each with a
305-
mapping length of 65535 (2^16-1) top. This imposes a limit of 65k pods per node,
305+
mapping length of 65536 (2^16) top. This imposes a limit of 65k pods per node,
306306
but that is not an issue we will hit in practice for a long time, if ever (today
307307
we run 110 pods per node by default).
308308

@@ -381,7 +381,7 @@ some other volume type than the ones listed for phase 1 is used. IOW, when phase
381381
the phase 2.
382382

383383
All pods in this mode will use _the same_ mapping, chosen by the kubelet, with a
384-
length 65535, and mapping the range 0-65534 too. IOW, each pod will have its own user
384+
length 65536, and mapping the range 0-65535 too. IOW, each pod will have its own user
385385
namespace, but they will map to _the same_ UIDs/GIDs in the host.
386386

387387
Using the same mapping allows for pods to share files and mitigates all the

0 commit comments

Comments
 (0)