<p>I am trying to start a pod in privileged mode using the following manifest but it doesn't work for me.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>                     
apiVersion: v1
kind: Pod
metadata:
  name: ftp
spec:
  privileged: true
  hostNetwork: true
  containers:
  - name: ftp
    image: 84d3f7ba5876/ftp-run</code></pre>
</div>
</div>
</p>

Jose Matinez
<p><strong><code>privileged: true</code></strong> needs to be in <strong><code>securityContext</code></strong> in the spec section of the pod template.</p>
<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: ftp
spec:
  hostNetwork: true
  containers:
  - name: ftp
    image: 84d3f7ba5876/ftp-run
    securityContext:
            privileged: true


        
</code></pre>
<p>You can refer to this <a href="https://kubernetes.io/docs/tasks/configure-pod-container/security-context" rel="nofollow noreferrer">doc</a> for detailed information for privileged mode</p>
