<p>I've created a pod that works as Nginx Proxy. It works well with the default configuration but when I add my custom configuration via ConfigMap it crashes.
This is the only log I have.</p>

<blockquote>
  <p>/bin/bash: /etc/nginx/nginx.conf: Read-only file system</p>
</blockquote>

<p>My deployment.yaml</p>

<pre><code>volumeMounts:
      - name: nginx-config
        mountPath: /etc/nginx/nginx.conf
        subPath: nginx.conf
        readOnly: false
  volumes:
  - name: nginx-config
    configMap:
      name: nginx-config
</code></pre>

<p>If could help I've found <a href="https://stackoverflow.com/questions/51884999/chown-var-lib-postgresql-data-postgresql-conf-read-only-file-system">this</a> answer on StackOverflow but I don't understand how to do those passages.</p>

<p>The config is correct. Reading the Nginx Docker documentation I've found that I have to add <code>command: [ "/bin/bash", "-c", "nginx -g 'daemon off;'" ]</code></p>
