runAsNonRoot Failures
After you add runAsNonRoot: true to a Pod, its container stays in CreateContainerConfigError with "container has runAsNonRoot and image will run as root". What fixes it while keeping the setting?
runAsNonRoot: true
CreateContainerConfigError
Choose one answer
Add the SETUID capability, so the image can drop to a non-root user after it starts.
SETUID
Set runAsUser to a non-zero UID, or use an image with a numeric USER.
runAsUser
USER
Set runAsGroup: 1000, which the kubelet accepts as proof the container is non-root.
runAsGroup: 1000
Add allowPrivilegeEscalation: true so the entrypoint can switch to a non-root user itself.
allowPrivilegeEscalation: true