-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rootless: guide for Bottlerocket OS (`sysctl -w user.max_user_namespa…
…ces=N`) Signed-off-by: Akihiro Suda <[email protected]> (cherry picked from commit c67176a) Signed-off-by: Akihiro Suda <[email protected]>
- Loading branch information
1 parent
d70b329
commit 58c8024
Showing
2 changed files
with
37 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Run `sysctl -w user.max_user_namespaces=63359` on all the nodes, | ||
# for errors like "/proc/sys/user/max_user_namespaces needs to be set to non-zero" | ||
# on running rootless buildkitd pods. | ||
# | ||
# This workaround is known to be needed on Bottlerocket OS. | ||
apiVersion: apps/v1 | ||
kind: DaemonSet | ||
metadata: | ||
labels: | ||
app: sysctl-userns | ||
name: sysctl-userns | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: sysctl-userns | ||
template: | ||
metadata: | ||
labels: | ||
app: sysctl-userns | ||
spec: | ||
containers: | ||
- name: sysctl-userns | ||
image: busybox | ||
command: ["sh", "-euxc", "sysctl -w user.max_user_namespaces=63359 && sleep infinity"] | ||
securityContext: | ||
privileged: true |