3
votes

I am trying to run a Kubernetes cluster on Google cloud. I am using the below link - http://kubernetes.io/docs/hellonode/

When I execute the below command - gcloud container clusters get-credentials hello-world

I get an error Request had insufficient authentication scopes

What is the possible solution to this problem?

1
Looks like you're running the gcloud container clusters get-credentials hello-world from Google Compute Engine instance?DoiT International
Yes that is correct.Dattatray

1 Answers

3
votes

The Container Engine API requires the cloud-platform OAuth2 Scope for authentication. If you are running these commands from a Google Compute Engine instance, you'll need to create the instance with that authentication scope:

  • With the gcloud CLI, add --scopes=cloud-platform to your gcloud compute instances create command.

  • In the Developer Console UI, select "Allow full access to all Cloud APIs" on the "Create an Instance" page.