Difference between revisions of "Kubectl patch pv"

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

Revision as of 12:58, 4 July 2022

Advertising: