Hi guys good morning.
I'm getting this error when trying to create a cluster in GKE, I tried disabling the compute engine API and enabling it again but it didn't work. Does anyone have a day?
Note: It doesn't delete the SA, but it just says it doesn't exist.
Hi.
The Default Service Account is essential for functions related to Compute Engine and is being generated automatically.
Kubernetes Engine utilizes Compute Engine VM Instances as Nodes used for the cluster. GKE uses the Compute Engine Service Account to authorize the creation of these nodes.
In order to regenerate default service there are two options:
gcloud services enable compute.googleapis.com
which is in the header of the page.
Or It is also probably that you could have more than one SA, so you must select which would be the default for that GKE (Simply go to the "Service Accounts" section "IAM & Admin" and select the app engine default service account, and provide this as an argument while creating cluster from gcloud)
gcloud container clusters create my-cluster --zone=ZONE --machine-type=MACHINETYPE --disk-size=SIZE --service-account=compute@developer.gserviceaccount.com