-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
HostToContainer
mount propagation instead of Bidirectional
Kubernetes only allows using `Bidirectional` mount propagation on privileged containers. But making a container privileged causes containerd to reset container's SELinux labels, and that causes problems with Bottlerocket. Because we spawn Mountpoint processes on the host by using systemd, Bottlerocket's SELinux policies by default denies that. In order to overcome this limitation we're using `super_t` SELinux label in our containers which then they become "superpowered" containers and bypasses the limitation. So, if we make our containers privileged, due to containerd's behaviour we lose our `super_t` SELinux label and Bottlerocket blocks our container to spawn systemd processes. Signed-off-by: Burak Varlı <burakvar@amazon.co.uk>
- Loading branch information
Showing
2 changed files
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters