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.
alias kctx="kubectl get-contexts && echo '---' && kubectl config current-context" kubectl get-contexts
You can append a context name to the command to view details for a specific context only. This is useful if you have a long kubeconfig file and want to check the specific user or namespace associated with a single entry. Maya’s terminal was a mess of green text
The Context Switch
Maya was a Site Reliability Engineer (SRE) for a chaotic fintech startup. It was 2:00 PM on a Tuesday—peak incident time. kubectl get-contexts
kubectl scale deployment payment-svc --replicas=5