<p>I'm currently creating a kubernetes deployment, in this deployment I have replicas value set at X and I want to create X volume that are not empty when the corresponding pod is restarted.
I'm not using any cloud provider infrastructures then please avoid command using cloud services.</p>

<p>I've been searching answer in kubernetes doc, and my first try was to create one huge persistent volume and one persistant volume claim per pod that are bind to the pv but it's seem's to not work...</p>

<p>My expectations are to have X volumes that are not shared between pods and that are not dying when pod is killed because of a liveness probe.
I'm aware of any possibilities that can do the trick!</p>

yatsukino
<p>Deployment replicas all use the same volume. There is no possibility currently to create independent volumes per replica.</p>

<p>StatefulSets can define <a href="https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#components" rel="noreferrer">volumeClaimTemplates</a> which means one or more independent volumes per replica. For that to work StorageClass must be capable of dynamic volume provisioning.</p>
