Kubectl Get-contexts !!top!! Review
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.
Maya’s terminal was a mess of green text. She was trying to debug why payment latency had spiked to four seconds in . Her fingers flew across the keyboard.
kubectl scale deployment payment-svc --replicas=5 The terminal confirmed the scale. But the latency didn't budge. kubectl get-contexts
kubectl get-contexts Her heart stopped.
Maya sighed. “The root cause was me. I didn’t run kubectl get-contexts before I started. I assumed where I was.” alias kctx="kubectl get-contexts && echo '---' && kubectl
The Context Switch
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 . Her fingers flew across the keyboard
She re-ran the scale command, watched the new pods spin up, and saw the latency graph finally flatten.

![[GHB] - GAmEhAcKbAsTaRdS Forum](https://forum.ghbsys.net/uploads/monthly_2020_12/ghbsys2.png.0c9617bdc2aefc98fe694fbdda8009f6.png)