<p>I have a strange behaviour on Kubernetes (Openshift).</p>

<p>It looks like the configuration file <code>reference.conf</code> is not loaded when starting the Application.</p>

<p>The same image works when used with plain Docker.</p>

<p>When I copy the properties to <code>application.conf</code> it works as well.</p>

pme
<p>The problem was that I made a mistake in mounting a file with <em>Kubernetes</em>.</p>

<p>My config looked like:</p>

<pre><code>        volumeMounts:
        - name: ${COMPONENT_NAME}-config-volume
          mountPath: /${COMPONENT_NAME}/conf
</code></pre>

<p>This overwrote the whole <em>configuration</em> directory, instead just the files.</p>

<p>The correct one is:</p>

<pre><code>        volumeMounts:
        - name: ${COMPONENT_NAME}-config-volume
          mountPath: /${COMPONENT_NAME}/conf/application.conf
          subPath: "application.conf"
</code></pre>

<p>This I got from here: <a href="https://stackoverflow.com/a/43404857/2750966">https://stackoverflow.com/a/43404857/2750966</a> </p>
