Is it possible to have 2 or more PVC in a statefulset?
Just append additional claim to your volumeClaimTemplates
. Example:
volumeClaimTemplates:
- metadata:
name: mongo-persistent-storage
annotations:
volume.beta.kubernetes.io/storage-class: "sc-infra"
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 2Gi
- metadata: # <-- append another claim
name: mongo-config-storage
spec:
storageClassName: sc-infra
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi