Skip to content
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

Fails to start if using runAsNonRoot:true #43

Open
ericsmalling opened this issue Sep 9, 2021 · 0 comments
Open

Fails to start if using runAsNonRoot:true #43

ericsmalling opened this issue Sep 9, 2021 · 0 comments

Comments

@ericsmalling
Copy link

The use of USER nobody:nobody in default image will cause a kublet startup failure if runAsNonRoot:true SecurityContext is applied or enforced via a PSP.

ie from describe:

Warning  Failed     7s (x3 over 22s)  kubelet            Error: container has runAsNonRoot and image has non-numeric user (nobody), cannot verify user is non-root (pod: "kuard-798585497b-4lpqf_default(6e554b4c-4f39-4fae-97c6-b147436639f4)", container: kuard)

Need to use numeric UID:GID in Dockerfile(s) to avoid this or else users will have to hard code them into runAsUser lines in their pod specs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant