Difference between revisions of "Kubectl patch pv"

From wikieduonline
Jump to navigation Jump to search
 
Line 4: Line 4:
 
Change persistentVolumeReclaimPolicy:
 
Change persistentVolumeReclaimPolicy:
 
  kubectl patch pv <your-pv-name> -p '{"spec":{"[[persistentVolumeReclaimPolicy]]":"Retain"}}'
 
  kubectl patch pv <your-pv-name> -p '{"spec":{"[[persistentVolumeReclaimPolicy]]":"Retain"}}'
 +
 +
== Related ==
 +
[[kubectl patch pvc]]
  
 
== See also ==
 
== See also ==
 
* {{Kubernetes storage}}
 
* {{Kubernetes storage}}
* {{kubectl}}
+
* {{kubectl patch}}
  
 
[[Category:K8s]]
 
[[Category:K8s]]

Latest revision as of 06:17, 23 November 2022

Advertising: