persistent-volume¶
https://kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-volume-storage/
use
PersistentVolumeto create a persistent-volumeuse
PersistentVolumeClaimto request physical storage for pods
types¶
https://kubernetes.io/docs/concepts/storage/persistent-volumes/
csi
nfs
local
azureFile (replaced by azureFile CSI migration)
delete pv/pvc¶
PersistentVolumeClaim is invalid: spec: Forbidden:
spec is immutable after creation except resources.requests for bound
solution: comment out
pvc volume already bound to a different claim¶
https://vmninja.wordpress.com/2021/08/10/kubernetes-volume-x-already-bound-to-a-different-claim/
solution: edit resourceVersion and uid in pv section claimRef using the value in pvc.