ERROR: (gcloud.container.clusters.create) ResponseError: code=400, message=The user does not have access to service account "default"

1/24/2018

I have a gcp service account with kubernetes engine admin role, I get an error trying to create new cluster. Any ideas?

gcloud auth activate-service-account --key-file service_account.json
gcloud config set project my_proj_name
gcloud container clusters create dummy  --num-nodes=3  -m n1-standard-8 --zone europe-west1-b

ERROR: (gcloud.container.clusters.create) ResponseError: code=400, message=The user does not have access to service account "default".

.

-- Mika R
gcloud
gcp
google-kubernetes-engine

2 Answers

1/25/2018

Seems your user does not have access to the service account or service account does not have the right role. You can check service account user role to your user and give Editor, compute admin and service account actor roles.

-- D Saini
Source: StackOverflow

1/27/2018

Issue solved after setting the service account role to the 'Editor' since kubernetes Engine Admin was not sufficient to create new cluster.

-- Mika R
Source: StackOverflow