apiVersion: v1 kind: PersistentVolumeClaim metadata: name: mysql-data-pvc spec: # Must explicitly match the storageClassName already on the live PVC. # Without this, kubectl apply diffs nil (base has no field) vs "local-path" # (cluster) and tries to mutate a bound PVC — which Kubernetes forbids. storageClassName: local-path accessModes: - ReadWriteOnce resources: requests: storage: 5Gi