How to extract volumeClaimTemplates to a separate PersistentVolumeClaim yaml file?
问题 Let's say I have a StatefulSet definition apiVersion: v1 kind: StatefulSet metadata: name: web spec: ... volumeClaimTemplates: — metadata: name: www spec: resources: requests: storage: 1Gi This will create me a PersistentVolumeClaim (PVC) with a PersistentVolume (PV) of 1 GiB for each pod. How can I write something like this apiVersion: v1 kind: PersistentVolumeClaim metadata: name: www spec: ... resources: requests: storage: 1Gi ... and connect it with the StatefulSet in a way that it still