k8s kubectl 修改PV回收策略
linuxkubectl patch pv ***PVNAME*** -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}'windowskubectl patch pv ***PVNAME*** -p "{\"spec\":{\"persistentVolumeReclaimPolicy\":\"Retain\"}"
·
- linux
kubectl patch pv <PVNAME> -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}'
- windows
kubectl patch pv <PVNAME> -p "{\"spec\":{\"persistentVolumeReclaimPolicy\":\"Retain\"}"
更多推荐
已为社区贡献3条内容
所有评论(0)