Latest Kubernetes Context Switching Nightmare Is Over 2025

Latest Kubernetes Context Switching Nightmare Is Over 2025

If you work with multiple Kubernetes clusters daily, you know the pain. Production, staging, development, that random test cluster someone spun up last month — they all live in your kubeconfig file, and switching between them feels like navigating a maze blindfolded.

kubecfg is a CLI tool that simplifies kubeconfig management. It lets you:

The killer feature? Interactive pickers with fuzzy selection. No more copy-pasting long context names.

That's it. One command. It shows you an interactive context picker, then asks which namespace you want. Both selections happen in one flow.

Or if you just want to switch context without the namespace prompt:

The -n flag is smart. Use it without a value for interactive selection, or pass a namespace directly.

When you download a kubeconfig from AWS EKS, GCP GKE, or Azure AKS, the context names are usually terrible. Something like arn:aws:eks:us-east-1:123456789:cluster/my-cluster.

With kubecfg, you can import it with a sensible name:

The original file stays untouched. The context gets added to your main kubeconfig with the name you chose.

Clean, tabular output. The asterisk shows your current context. Namespace shows what's configured, or - if using default.

Source: Dev.to