About gcloud clusters get credentials




I have a circle.yml and using it for gcloud.At circle.yml I have a line like below:

  # Get the cluster credentials.
    - sudo /opt/google-cloud-sdk/bin/gcloud --quiet container clusters get-credentials $CLUSTER_NAME

When I want to build it at CircleCI from my github project,I’m getting an error like below

Fetching cluster endpoint and auth data.
ERROR: (gcloud.container.clusters.get-credentials) ResponseError: code=403, message=Required “container.clusters.get” permission for …

How can I get rid of this problem ?



This indicates that your credentials are not correct. Can you double check them, and then try to run this step manually via SSH (https://circleci.com/docs/1.0/ssh-build/#nav-button) using those credentials?