<p>I'm trying to figure out how to verify if a pod is running with security context privileged enabled (set to true).</p>

<p>I assumed that '<code>kubectl describe pod [name]</code>' would contain this information but it does not appear to.</p>

<p>I quickly created a pod using the following definition to test:</p>

<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: priv-demo
spec:
  volumes:
  - name: priv-vol
    emptyDir: {}
  containers:
  - name: priv-demo
    image: gcr.io/google-samples/node-hello:1.0
    volumeMounts:
    - name: priv-vol
      mountPath: /data/demo
    securityContext:
      allowPrivilegeEscalation: true
      privileged: true
</code></pre>

<p>Any ideas how to retrieve the security context?  It must be an easy thing to do and I've just overlooked something.</p>

<pre><code>kubectl get pod POD_NAME -o json | jq -r '.spec.containers[].securityContext.privileged'
</code></pre>
