Kubectl one liners

From UVOO Tech Wiki
Jump to navigation Jump to search
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