Difference between revisions of "Kubectl one liners"
Jump to navigation
Jump to search
(Created page with "``` kubectl patch pv <your-pv-name> -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}' ```") |
|||
Line 1: | Line 1: | ||
``` | ``` | ||
kubectl patch pv <your-pv-name> -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}' | kubectl patch pv <your-pv-name> -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}' | ||
+ | kubectl exec -it $(kubectl get pod -l cnpg.io/instanceRole=primary --no-headers -o custom-columns=":metadata.name") -- bash | ||
``` | ``` |
Latest revision as of 14:24, 7 February 2024
kubectl patch pv <your-pv-name> -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}' kubectl exec -it $(kubectl get pod -l cnpg.io/instanceRole=primary --no-headers -o custom-columns=":metadata.name") -- bash