A volume claim template is a StatefulSet specification that tells Kubernetes to create a separate PersistentVolumeClaim for each Pod. It replaces a single shared claim, so replicated stateful Pods can each receive their own disk. section 9.2
Using a volume claim template gives StatefulSet storage behavior that a Deployment with one standalone claim cannot provide:
- Creates one PersistentVolumeClaim from the template for every StatefulSet Pod. section 9.2
- Associates each claim with a stable Pod identity, such as mariadb-0. section 9.2 section 9.2.1
- Keeps the claim definition inside volumeClaimTemplates, removing the need to create a separate PersistentVolumeClaim object. section 9.2.1
MariaDB StatefulSet
A MariaDB StatefulSet mounts the template-produced claim at /var/lib/mysql. With one replica, Kubernetes creates a claim named mariadb-pvc-mariadb-0; adding replicas produces distinct claims rather than mounting the same claim on every Pod. section 9.2.1


