<p>I am looking for a kubernetes equivalent of <code>docker -v</code> for mounting the volumes in gcloud.</p>

<p>I am trying to run my container using google-container-engine which uses kubectl to manage clusters. In the kubectl run command I could not fund any provision for mounting the volumes.</p>

<pre><code> kubectl run foo --image=gcr.io/project_id/myimage --port 8080
</code></pre>

<p>I checkout their <a href="https://kubernetes.io/docs/user-guide/docker-cli-to-kubectl/#docker-run" rel="noreferrer">official docs</a> but could not find any clue whatsoever.</p>

<p>As at the moment, It's not possible to mount a persistent Volume in a container by using imperative ways or using generators command (run, expose).Therefore, You could use declarative way to get it done.  </p>

<p>Kubernetes provides 2 abstractions for storage in a cluster which are persistent volume claim (PVC) and persistent volume (PV). Moreover, you can use storage class to provide Persistent volume (PV) in a dynamic way.</p>

<p><a href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/" rel="nofollow noreferrer">persistent-volumes</a>.</p>

<p><a href="https://kubernetes.io/docs/concepts/storage/storage-classes/" rel="nofollow noreferrer">storage-classes</a>  </p>

<p>When you write a manifest file for deployment you need to use a volume claim field to access PVC as well as you will write a PVC to claim PV.</p>
