Kubectl - Context

Then your team lead, Alex, pings you: “Hey, the staging environment is throwing 500 errors. Can you check?”

kubectl get pods The list that appears shows five pods, all with names like auth-service-7d8f9b-xk2lm . They look healthy. Everything seems fine. kubectl context

export PS1="[\u@\h \$(kubectl config current-context)] \$ " Now you’ll see something like [alex@laptop dev-cluster] $ — no more guessing. Then your team lead, Alex, pings you: “Hey,

You nod, stay in the same terminal, and run: Then your team lead

You type: