Kubectl one liners

From UVOO Tech Wiki
Revision as of 14:24, 7 February 2024 by Busk (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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