# How to create a volume in vSphere

**URL:** <https://discuss.kubernetes.io/t/how-to-create-a-volume-in-vsphere/20779>\
**Category:** General Discussions\
**Created:** [July 28, 2022, 9:30am UTC](https://discuss.kubernetes.io/t/how-to-create-a-volume-in-vsphere/20779 "2022-07-28T09:30:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luis.leite](https://avatars.discourse-cdn.com/v4/letter/l/e47774/32.png) [@luis.leite](https://discuss.kubernetes.io/u/luis.leite)\
**Post date:** [July 28, 2022, 9:30am UTC](https://discuss.kubernetes.io/t/how-to-create-a-volume-in-vsphere/20779/1 "2022-07-28T09:30:32Z")

</div>

Hi everyone,

I’m noob with Kubernetes, and I need some help.  
I have a cluster with 1 master and 2 workers, implemented with vSphere connection.  
Now I want to share a volume/hard disk, to store databases out of my rancher cluster.  
How should I do?

Thanks.

---

<div class="post-metadata">

**Author:** ![pchan](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@pchan](https://discuss.kubernetes.io/u/pchan)\
**Post date:** [August 1, 2022, 5:25am UTC](https://discuss.kubernetes.io/t/how-to-create-a-volume-in-vsphere/20779/2 "2022-08-01T05:25:07Z")

</div>

You will need to provision Persisted Volume. Quoting from a source that some info on it ([link](https://docs.vmware.com/en/VMware-Tanzu-Kubernetes-Grid/1.5/vmware-tanzu-kubernetes-grid-15/GUID-tanzu-k8s-clusters-storage.html)). Check to see if this [Rancher link](https://rancher.com/docs/rancher/v2.5/en/cluster-admin/volumes-and-storage/examples/vsphere/) helps.

> Within a Kubernetes cluster, `PersistentVolume` (PV) objects provide shared storage for cluster pods that is unaffected by pod lifecycles. Storage is provisioned to the PV through a `PersistentVolumeClaim` (PVC) object, which defines how much and how the pod accesses the underlying storage. For more information, see [Persistent Volumes](https://kubernetes.io/docs/concepts/storage/persistent-volumes/) in the Kubernetes documentation.
> 
> Cluster administrators can define `StorageClass` objects that let cluster users dynamically create PVC and PV objects with different storage types and rules.
