<p>With docker, I can pass log-driver=syslog command line option to forward container logs to syslog. How do I pass these docker arguments via Kubernetes yaml/json descriptor?</p>

<p>Starting with the available documentation: in your case on <a href="http://kubernetes.io/v1.1/docs/user-guide/logging.html" rel="nofollow">logging</a> and <a href="http://kubernetes.io/v1.1/docs/user-guide/volumes.html" rel="nofollow">volumes</a>. Taking these two sources together we arrive at something like the following:</p>

<pre><code>...
containers:
  - name: syslogtest
    image: ubuntu:14.04
    volumeMounts:
      - name: logvol
        mountPath: /dev/log
        readOnly: false
volumes:
  - name: logvol
    source:
      hostDir:
        path: /dev/log
...
</code></pre>
