How Do You Troubleshoot the Google Kubernetes Engine error “Request had insufficient authentication scopes”?

Problem scenario
You run a command like this:
gcloud container clusters get-credentials standard-cluster-1 --region us-central1-a

But you receive this message:
"Fetching cluster endpoint and auth data.
ERROR: (gcloud.container.clusters.get-credentials) ResponseError: code=403, message=Request had insufficient authentication scopes."

What should you do?

1. Stop the VM.
2. Click on the hyperlinked name of the VM.
3. Click "Edit"
4. Check the option to "Allow full access to all Cloud APIs "
5. Click Save
6. Turn the VM on.
7. Try again.

Leave a comment

Your email address will not be published. Required fields are marked *