<p>Kubernetes newbie here, so my question might not make sense. Please bear with me.</p>

<p>So my question is, given I have setup Storage Class in my cluster, then I have a PVC (Which uses that Storage Class). If I use that PVC into my Deployment, and that Deployment have 5 replicas, will the Storage Class create 5 PV? one per Pod? Or only 1 PV shared by all Pods under that Deployment?</p>

<p>Edit: Also I have 3 Nodes in this cluster</p>

<p>Thanks in advance.</p>

<p>The <a href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims" rel="nofollow noreferrer">Persistent Volume Claim</a> resource is specified separately from a deployment. It doesn't matter how many replicas the deployment has, kubernetes will only have the number of PVC resources that you define.</p>

<p>If you are looking for multiple stateful containers that create their own PVC's, use a <a href="https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/" rel="nofollow noreferrer">StatefulSet</a> instead. This includes a <code>VolumeClaimTemplate</code> definition. </p>

<p>If you want all deployment replicas to share a PVC, the storage class provider plugin will need to be either <a href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes" rel="nofollow noreferrer">ReadOnlyMany or ReadWriteMany</a></p>
