Not working when Policy runAsNonRoot is set, need to set securityContext.runAsUser
Alestrix opened this issue · comments
Alestrix commented
In our company's internally managed k8s platform the policy runAsNonRoot
is set and this causes the deployment to fail with
Error: container has runAsNonRoot and image has non-numeric user (node), cannot verify user is non-root
After editing deployment.yaml
and inserting this
securityContext:
runAsUser: 1000
runAsGroup: 1000
in
the chart could be installed successfully.