Kubectl Get-contexts !new! May 2026

Quickly, she corrected her mistake:

alias kctx="kubectl get-contexts && echo '---' && kubectl config current-context" And every time she opened a terminal, she knew exactly which universe she was about to change.

kubectl config use-context prod-cluster kubectl get-contexts CURRENT NAME CLUSTER dev-cluster dev-cluster staging-cluster staging-cluster * prod-cluster prod-cluster Now the * sat beside . kubectl get-contexts

Later, at the post-mortem meeting, her manager asked, “What was the root cause?”

For the last ten minutes, she had been tailing logs and scaling replicas on a silent, empty staging environment while the real production cluster continued to fail. The * (asterisk) was pointing to the wrong world. The * (asterisk) was pointing to the wrong world

kubectl get-contexts Her heart stopped.

She swore under her breath. “How did I forget to switch contexts?” “How did I forget to switch contexts

Confused, she checked the configuration.