Context | Kubectl Set Current
kubectl config use-context prod-cluster
Let's say you have two contexts: dev-env and prod-env , and you want to switch to prod-env . Here's how you can do it: kubectl set current context
| Command | Purpose | |---------|---------| | kubectl config get-contexts | List all available contexts | | kubectl config current-context | Show the current context | | kubectl config use-context <name> | Set the current context | | kubectl config set-context <name> | Create or modify a context (does not switch to it) | kubectl config use-context prod-cluster Let's say you have