Manage kubeconfig
medium risk
View and switch contexts. See the flags and examples below, and run `man kubectl` for the full reference.
| Flag | Meaning |
|---|---|
get-contexts | List |
current-context | Show |
use-context | Switch |
set-context --current --namespace | Set default namespace |
kubectl config get-contextsList contexts · explain & risk-check →Reference text is hand-written and may be incomplete — check man kubectl for your version. Test destructive commands on a non-production system first.