Kubectl — Switch Contexts !!hot!!
kubectl logs payment-api-f9k3l-8hj2s -n payment-system --previous There it was. A connection pool exhaustion error to the Redis cache. The new deployment had increased the default pool size, and the production Redis max connections was too low.
He pushed it to the team’s dotfiles repo with a single commit message: From that day on, every engineer on the team had a colorful, impossible-to-ignore shell prompt. And not once—not a single time—did anyone ever again spend ten minutes troubleshooting the wrong cluster. kubectl switch contexts
“Gotcha.”
kubectl config get-contexts The output made his stomach drop: kubectl switch contexts
Then it hit him.