GoogleCloudPlatform/continuous-deployment-on-kubernetes

Credentials selector doesn't work

concrete-ricardo-silva opened this issue · 2 comments

After create a credential, they don't appear in selector, just none appears to select.

aplex commented

I had the same problem, and found out that you need to create a cluster with special scopes/permissions for this to work. It is mentioned in the beginning of the article:

$ gcloud container clusters create jenkins-cd \
  --num-nodes 3 \
  --scopes "https://www.googleapis.com/auth/projecthosting,storage-rw"

If you already have a cluster, you can re-create the node group with correct permissions following the guide from https://medium.com/google-cloud/updating-google-container-engine-vm-scopes-with-zero-downtime-50bff87e5f80

Indeed the one that is particularly important in this case is https://www.googleapis.com/auth/projecthosting.