<p>I am learning more about Kubernetes Pod Security Policies, and while going through the list of fields, I could not find the default value for the <a href="https://kubernetes.io/docs/concepts/policy/pod-security-policy/#privileged" rel="nofollow noreferrer">Privileged</a> flag. Is this value dependent on the container runtime used? For example, <a href="https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities" rel="nofollow noreferrer">Docker containers</a> have this value set to false by default, so if I had a Kubernetes cluster with only Docker containers, would all the pods be unprivileged?</p>

<p>There is a privileged flag on the SecurityContext of the container spec. The default is false.</p>

<p>Foreexample by below template you can set it to true.</p>

<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: hello-world
spec:
  containers:
    - name: hello-world-container
      # The container definition
      # ...
      securityContext:
        privileged: true 
</code></pre>
