Du skal oprette en PV for at tilfredsstille PVC. Hvis du anvender nedenstående PV, burde det virke.
apiVersion: v1
kind: PersistentVolume
metadata:
name: task-pv-volume
labels:
type: local
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/data"
Bemærk venligst nedenstående punkter
- Brug af
hostPathanbefales ikke i produktion capacityaf PV og PVC skal matcheaccessModesaf PV og PVC skal matche