non root user
On some hardened kubenertes clusters, having containers with root access is prohibited (with Admission Controllers). I propose here to use a non root user for nats-box.
This will allow to create the deployment in nats.io/k8s with a securityContext:
securityContext:
runAsUser: 1001
unfortunately, I don't know any method to use the user name instead of the user id. That's why I'm fixing the user id, to something working in that image.
Hello, any comment or feedback on this PR?
Hi, sorry for the delay. Need to investigate this one a bit further to be backwards compatible, or maybe publish it as a different image
Added a nats user/group with UID/GID 1000:1000 in #47 and it will be in the next release
This is still opt-in for backwards compatibility issues, so on k8s will still require specifying runAsUser