<p>I`vw tried to install jenkins on minikube according this article
<a href="https://www.jenkins.io/doc/book/installing/kubernetes/" rel="nofollow noreferrer">https://www.jenkins.io/doc/book/installing/kubernetes/</a></p>
<p>When I type <code>kubectl logs pod/jenkins-0 init -n jenkins</code>
I get</p>
<pre><code>disable Setup Wizard
/var/jenkins_config/apply_config.sh: 4: /var/jenkins_config/apply_config.sh: cannot create /var/jenkins_home/jenkins.install.UpgradeWizard.state: Permission denied
</code></pre>
<p>I almost sure that I have some problems with file system on mac.</p>
<p>I did not create serviceAccount from article because helm have not seen it and returns error.</p>
<p>Instead of it I changed in jenkins-values.yaml</p>
<pre><code>serviceAccount:
  create: true
  name: jenkins
  annotations: {}
</code></pre>
<p>Then I tried set next values to 0. It have no affect.</p>
<pre><code>  runAsUser: 1000
  fsGroup: 1000
</code></pre>
<p>Addition info:
kubectl get all -n jenkins</p>
<pre><code>NAME            READY   STATUS                  RESTARTS   AGE
pod/jenkins-0   0/2     Init:CrashLoopBackOff   7          15m

NAME                    TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)     AGE
service/jenkins         ClusterIP   10.104.114.29    &lt;none&gt;        8080/TCP    15m
service/jenkins-agent   ClusterIP   10.104.207.201   &lt;none&gt;        50000/TCP   15m

NAME                       READY   AGE
statefulset.apps/jenkins   0/1     15m
</code></pre>
<p>Also tried to use different directories for volume live /Volumes/data and add 777 permissions to it.</p>

<p>There are a couple potentials in here, but there is a solution without switching to <code>runAsUser 0</code> (which breaks security assessments).</p>
<p>The folder <code>/data/jenkins-volume</code> is created as root by default, with a 755 permission set so you can't create persistent data in this dir with the default jenkins build.</p>
<ul>
<li>To fix this, enter minikube with <code>$ minikube ssh</code> and run: <code>$ chown 1000:1000 /data/jenkins-volume</code></li>
</ul>
<p>The other thing that could be biting you (after fixing the folder permissions) is SELinux policies, when you are running your Kubernetes on a RHEL based OS.</p>
<ul>
<li>To fix this: <code>$ chcon -R -t svirt_sandbox_file_t /data/jenkins-volume</code></li>
</ul>
