I have added a security context in my pod which looks as follows:
spec:
securityContext:
runAsNonRoot: true
While running the pod I am getting error message (kubectl get pod pod-name -o=yaml):
container has runAsNonRoot and image has non-numeric user (default), cannot verify user is non-root
The message is intuitive but, after reading this kubernetes blog it seems to me it should be very straight forward, what I am missing here?