kubectl config use-context prod

Category: Kubernetes & Containers

kubectl config use-context prod

Switch to another context

Makes the prod context the active one, so all subsequent kubectl commands target the prod cluster. Switching contexts does not touch the clusters themselves. Verify with kubectl config current-context.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.