Replies: 1 comment
-
Running Unit as non-root in Kubernetes is the same as running it non-root anywhere, in that you will need to make sure you have the right filesystem permissions configured. Of course there are two prongs to this question. When you say "non-root" do you mean simply having Unit run as a non-root user with the --user/group options? Whereby Unit will start as root then change user or do you mean starting the daemon itself as non-root which will impose some other restrictions... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description:
I'm trying to deploy NGINX Unit in Kubernetes with Pod security context
runAsNonRoot: true
(non-root container), but encountering permission issues with the control socket. Here's what I've tried:The problem:
Unit fails to create the control socket with permission errors, even though
/tmp/unit
exists and has correct permissions. The logs show:Questions:
runAsNonRoot: true
?Additional context:
unit:1.34.2-php8.4
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions