Difference between revisions of "Kubectl patch pv"
Jump to navigation
Jump to search
(Created page with " kubectl patch pv {{kubectl}}") |
|||
(6 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | [[kubectl patch]] pv | + | {{lc}} |
+ | [[kubectl patch]] [[pv]] | ||
+ | Change persistentVolumeReclaimPolicy: | ||
+ | kubectl patch pv <your-pv-name> -p '{"spec":{"[[persistentVolumeReclaimPolicy]]":"Retain"}}' | ||
+ | == Related == | ||
+ | [[kubectl patch pvc]] | ||
− | {{kubectl}} | + | == See also == |
+ | * {{Kubernetes storage}} | ||
+ | * {{kubectl patch}} | ||
+ | |||
+ | [[Category:K8s]] |
Latest revision as of 06:17, 23 November 2022
kubectl patch pv
Change persistentVolumeReclaimPolicy:
kubectl patch pv <your-pv-name> -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}'
Related[edit]
kubectl patch pvc
See also[edit]
- Kubernetes storage, storage classes, PersistentVolume (PV), PVC, CSI,
kind: StorageClass, kind: PersistentVolumeClaim, kind: PersistentVolume
,kubectl [ get | describe | edit ] pvc
,volumeClaimTemplates:
,kubectl patch pv
,FailedMount
, Volume Expansion, Volume Cloning, snapshots, ExtraVolumes, NotTriggerScaleUp,volumePVCDataSource, AllowVolumeExpansion
, EKS storage, provisioner, Storage Capacity Tracking,VolumeBinding, VolumeClaimTemplate, storage.k8s.io
, CKA Storage, DoKC, EmptyDir, Volume populators,storageclass.kubernetes.io
kubectl patch [ cronjobs | svc | pv | pvc | sts | service | secret | sts elastic-operator | node | daemonset | --help ]
Advertising: