<p>I've been trying to install Jenkins by using Helm on Minikube according to the official article</p>
<p><a href="https://www.jenkins.io/doc/book/installing/kubernetes/" rel="nofollow noreferrer">https://www.jenkins.io/doc/book/installing/kubernetes/</a></p>
<p>It turns out that I can't bring up the Jenkins Pod,  <code>kubectl logs -f jenkins-0 -c init -n jenkins</code>   gives me this error</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>From my assumption, this issue obviously relates with permission in <code>Dockerfile</code>
or it might relates to the defined values in <code>jenkins-values.yaml</code>. I've changed some parameters as the recommended values.</p>
<pre><code>storageClass: jenkins-pv

serviceAccount:
create: false
name: jenkins
annotations: {}

serviceType: NodePort
</code></pre>
<p>release detail</p>
<pre><code>NAME    NAMESPACE       REVISION        UPDATED                                 STATUS          CHART           APP VERSION
jenkins jenkins         1               2021-01-04 15:58:00.022465588 +0700 +07 deployed        jenkins-3.0.14  2.263.1   
</code></pre>
<p>is there anyway to fix this?</p>
<p>Thanks</p>

BTH.S3
<p>It seems that for some reason the volume is mounted with not-enough access rights. You can try running your container with the root user. It may solve the issue. Put these lines into your <code>values.yaml</code>.</p>
<pre><code>runAsUser: 0
fsGroup: 0
</code></pre>
