<p>I have 2 helm manifests - <code>Jobs</code>. One is supposed to create/generate a file with some configurations. The other is supposed to consume/use the generated file. <code>generate</code> works fine. But the other one -<code>load</code> - can't access the config file. Getting an error <code>No such file or directory</code></p>

<p>Provided below are code snippets for the volumes. I think something is not right. 
I am using <code>StorageClass</code> object.</p>

<p>Thank you all</p>

<p><code>generate.yml</code></p>

<pre><code>volumes:
        - name: {{ template "gluu.fullname" . }}-config
          persistentVolumeClaim: 
            claimName: {{ template "gluu.fullname" . }}-config-volume-claim
      containers:
        - name: {{ template "gluu.fullname" . }}-config-init
          image: gluufederation/config-init:3.1.6_02
          volumeMounts:
            - mountPath: /opt/config-init/db/
              name: {{ template "gluu.fullname" . }}-config
              subPath: db

</code></pre>

<p><code>load.yml</code></p>

<pre><code>volumes:
        - name: {{ template "gluu.fullname" . }}-config
          persistentVolumeClaim:
            claimName: {{ template "gluu.fullname" . }}-config-volume-claim
      containers:
        - name: {{ template "gluu.fullname" . }}-config-init-load
          image: gluufederation/config-init:3.1.6_03
          volumeMounts:
            - mountPath: /opt/config-init/db
              name: {{ template "gluu.fullname" . }}-config
              subPath: db
</code></pre>

Shammir
<p>Could be your Volume can't be mounted read-write by more than one pod. Try to mount the volume in the second pod </p>

<p>volumeMounts:</p>

<pre><code>    readOnly: true
</code></pre>

<p>by default is readOnly: false</p>
