title: How to pass docker run parameter via kubernetes pod
body: <p>Hi I am running kubernetes cluster where I run Logstash container. </p>
  
  <p>But I need to run it with own docker run parameter. If I would run it in docker directly. I would use command:</p>
  
  <pre><code>docker run --log-driver=gelf logstash -f /config-dir/logstash.conf
  </code></pre>
  
  <p>But I need to run it via Kubernetes pod. My pod looks like:</p>
  
  <pre><code>spec:
        containers:
        - name: logstash-logging
          image: "logstash:latest"
          command: ["logstash", "-f" , "/config-dir/logstash.conf"]
          volumeMounts:
            - name: configs
              mountPath: /config-dir/logstash.conf
  </code></pre>
  
  <p>How to achieve to run Docker container with parameter --log-driver=gelf via kubernetes. Thanks.</p>