Skip to content

Commit a8198fb

Browse files
author
Michael Burke
committed
Linux User Namespace ID-mapped mount inforation
1 parent 4961864 commit a8198fb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

nodes/pods/nodes-pods-user-namespaces.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ By default, a container runs in the host user namespace. Running a container in
1212

1313
Running containers in individual user namespaces can mitigate container breakouts and several other vulnerabilities that a compromised container can pose to other pods and the node itself.
1414

15+
When running a pod in an isolated user namespace, the UID/GID inside a pod container no longer matches the UID/GID on the host. In order for file system ownership to work correctly, the Linux kernel uses ID-mapped mounts, which translate user IDs between the container and the host at the virtual file system (VFS) layer.
16+
17+
[IMPORTANT]
18+
====
19+
Not all file systems currently support ID-mapped mounts, such as Network File Systems (NFS) and other network/distributed file systems. Any pod that is using an NFS-backed persistent volume from a vendor that does not support ID-mapped mounts might experience access or permission issues when running in a user namespace. This behavior is not specific to {product-title}. It applies to all Kubernetes distributions from Kubernetes v1.33 onward.
20+
====
21+
1522
// The following include statements pull in the module files that comprise
1623
// the assembly. Include any combination of concept, procedure, or reference
1724
// modules required to cover the user story. You can also include other

0 commit comments

Comments
 (0)