Ironically, k-rail won't run in an environment where the default PodSecurityPolicies (PSP) enforce RunAsNonRoot, because the USER value in the Dockerfile is non-numeric:
Warning Failed 8s (x4 over 25s) kubelet, wn3.kube-cluster.local Error: container has runAsNonRoot and image has non-numeric user (nobody), cannot verify user is non-root
This PR simply changes the USER value to the UID of the "nobody" user, and makes PSP happy again :)
Ironically, k-rail won't run in an environment where the default PodSecurityPolicies (PSP) enforce
RunAsNonRoot
, because the USER value in the Dockerfile is non-numeric:This PR simply changes the USER value to the UID of the "nobody" user, and makes PSP happy again :)