Kubectl Get Context [hot] May 2026
His onboarding task was simple: “Roll out the fix for the payment service.”
kubectl get context But it didn’t work. The terminal spat back: error: unknown command "get context" - did you mean "config get-contexts"? Right. He’d misremembered. He corrected it: kubectl get context
Carefully, he switched to the staging environment: His onboarding task was simple: “Roll out the
kubectl config use-context staging-eu Switched to context "staging-eu". He applied the fix. It worked perfectly. Then, with a deep breath, he switched back: He’d misremembered
He stared at the screen. One wrong kubectl apply and he could charge a cactus to someone’s credit card.
alias k-get-ctx='kubectl config get-contexts' Then, just before hitting kubectl apply -f payment-fix.yaml , he ran it again. The asterisk still shone beside prod-dallas . Good. No last-minute surprises.
It was Vlad’s first day on the job as a platform engineer at a chaotic startup called Nebulous Systems. The previous “kube-whisperer” had left behind a labyrinth of Kubernetes clusters: staging, prod, legacy, and one ominously named “do-not-touch.”