<p>I'm trying to deploy logstash to kubernetes. Before I was running it by docker compose and it was working. On compose i have:</p>

<pre><code>    volumes:
  - ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
  - ./logstash/pipeline:/usr/share/logstash/pipeline:ro
</code></pre>

<p>To deploy it on kubernetes I created dockerfile:</p>

<pre><code>FROM docker.elastic.co/logstash/logstash-oss:6.2.3
ADD ./config/logstash.yml /usr/share/logstash/config/logstash.yml:ro
ADD ./pipeline /usr/share/logstash/pipeline:ro
</code></pre>

<p>But after run that image logstash doesn't see the config file. (Even locally)</p>

<p>That Dockerfile works fine for me:</p>

<pre><code>FROM docker.elastic.co/logstash/logstash-oss:6.2.3
RUN rm -f /usr/share/logstash/pipeline/logstash.conf
ADD pipeline/ /usr/share/logstash/pipeline/
ADD config/ /usr/share/logstash/config/
</code></pre>

<p>I think before the problem was with overriding the logstash.conf file</p>
