<p>I trying to do a deployment through my k8s operator on openshift 3.11 cluster. When the kaniko job starts it gives me the following error.</p>

<pre><code>Error: error resolving dockerfile path: copying dockerfile: open /kaniko/Dockerfile: 
permission denied
</code></pre>

<p>Add <code>securityContext: runAsUser: 0</code> into pod spec to run it as root.</p>

<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: security-context-demo
spec:
  securityContext:
    runAsUser: 0
</code></pre>
