Problem scenario
You run a kubectl command but you get this error:
“could not get token: AccessDenied: Access denied
status code: 403, request id:
Unable to connect to the server: getting credentials: exec: exit status 1″
What should you do?
Solution
The root cause is likely that your .kube directory has an incorrect configuration file.
Possible Solution #1
If you are not using Amazon EKS,
…
Continue reading “How Do You Troubleshoot the kubectl Error “Access denied status code: 403””