Contexts: Kubectl Switch

“Then why is the alert firing?” he whispered.

kubectl config use-context prod-us-east Switched to context "prod-us-east". kubectl switch contexts

He typed:

kubectl get pods -n payment-system Pods were crashing. CrashLoopBackOff. Restart counts through the roof. “Then why is the alert firing

kubectl get pods -n payment-system The list appeared. Pods were running. That was odd. He checked the logs of the oldest one: and in life.

Context is everything. In Kubernetes, and in life.