kubectl config current-context

Category: Kubernetes & Containers

kubectl config current-context

Show the active context

Prints the name of the context (which cluster kubeconfig currently points at) that kubectl will use. Confirm it before destructive commands so you do not hit the wrong cluster. Related: kubectl config view.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.