Difference between revisions of "Kubectl patch pv"

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

Revision as of 13:17, 4 July 2022

Advertising: