<p>I'm starting a container using kubernetes and I have to send a -v parameter to docker. I'm searching for it about 3 hours and no success.
Here you can see my run command:</p>

<p><code>kubectl run api --image=${API_IMAGE} --port=${PORT_SERVICE} --overrides='{"apiVersion": "v1","spec": {"template": {"spec": {"containers": [{"name": "api","image": "'${API_IMAGE}'","env": [{"name": "listen","value": "0.0.0.0"},{"name": "etcdAddr","value": "'${ETCD_ADDR}'"}]}]}}}}'</code></p>

<p>You want to use the <a href="https://github.com/kubernetes/kubernetes/blob/release-1.0/docs/user-guide/volumes.md" rel="nofollow">Volumes</a> construct, which is quite well explained in the docs and used in a number of examples.</p>

<p>If you want to use a host directory, use the <code>hostPath</code> volume type. There's an example of using it <a href="https://github.com/kubernetes/kubernetes/blob/38aeddec8f9bdf2e1f25a5048c1b84a95dff7eac/examples/vitess/vtctld-controller.yaml" rel="nofollow">here</a>.</p>
