-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rootless: support Bottlerocket OS #3697
Conversation
611f84b
to
42aa562
Compare
Port https://github.com/moby/moby/blob/v23.0.1/daemon/oci_linux.go#L430-L460 > // Get the set of mount flags that are set on the mount that contains the given > // path and are locked by CL_UNPRIVILEGED. This is necessary to ensure that > // bind-mounting "with options" will not fail with user namespaces, due to > // kernel restrictions that require user namespace mounts to preserve > // CL_UNPRIVILEGED locked flags. Fix issue 3098 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
…ces=N`) Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@@ -24,6 +24,12 @@ spec: | |||
|
|||
See also the [example manifests](#Kubernetes). | |||
|
|||
### Bottlerocket OS | |||
|
|||
Needs to run `sysctl -w user.max_user_namespaces=N` (N=positive integer, like 63359) on the host nodes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running this command in the Bottlerocket hosts isn't the recommended approach, I can update the docs to mention how to set up max_user_namespaces
in the “Bottlerocket way”, if that's OK with you all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, please
Fix #3098
Tested on Bottlerocket OS 1.12.0 (aws-k8s-1.25), kernel 5.15.79 (
eksctl --version=1.25 -node-ami-family=Bottlerocket
using eksctl 0.132.0)