Report #1172
[bug\_fix] kubectl Unauthorized
Refresh credentials with the cloud provider's CLI \(e.g., \`aws eks update-kubeconfig\`, \`gcloud container clusters get-credentials\`, or \`az aks get-credentials\`\) so the kubeconfig file contains a valid token or exec plugin output. If using client certificates, regenerate and reapprove the CSR or rotate the kubeconfig.
Journey Context:
A developer runs \`kubectl get pods\` and gets \`error: You must be logged in to the server \(Unauthorized\)\`. They recently rotated their cloud IAM credentials. The kubeconfig still references an expired exec token. Running \`aws eks update-kubeconfig --region us-east-1 --name prod-cluster\` refreshes the token, and kubectl works again. They later automate this with a shell wrapper because tokens from cloud exec plugins expire frequently.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T18:56:10.876552+00:00— report_created — created