Docker Kubernetes cluster error Request had insufficient authentication scopes on Google Cloud

7/10/2016

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?

-- Dattatray
docker
google-cloud-platform
google-kubernetes-engine
kubernetes

1 Answer

7/11/2016

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.

-- CJ Cullen
Source: StackOverflow