<p>Is there a flag/field in kubectl describe pods which tells if the container is running as root or non-root, I have few containers, I need to check if they are running as root</p>

Sandeep540
<p>You can run <code>whoami</code> command inside the pod to see the name of the users. You can also check if <code>runAsUser</code> field is specified in the <code>securityContext</code> of pod's manifest. Containers by default run as root users.</p>
<p>For <code>securityContext</code>, check out examples in this <a href="https://kubernetes.io/docs/tasks/configure-pod-container/security-context/" rel="nofollow noreferrer">link</a></p>
