-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to create a GKE cluster #898
Comments
After testing with different setup, the only way to made it working was to enable monitoring and logging. The VM that was created by the cluster was not reachable via ssh, even from the cloud shell. I had to logging and monitoring:
I think this is some sort of bug because CLI and the portal are capable of deploying with no problem. |
Hey @koalalorenzo, I've been playing around with this and I have a solid idea of what's going on. When you create a cluster in the UI or with gcloud, it comes with a default set of permissions that are enabled for the service account running on the instances that get created. You can see this in the console under "Access Scopes". If you try to edit these in the console, you can see that it doesn't allow disabling the scopes for logging/monitoring. However, when you use the REST API (which Terraform does), if you don't specify scopes it sends them all as disabled. GKE needs the monitoring scope to be there in order for the nodes to register. A quick fix you can use for this would be to just enable the monitoring scope in your
I'll also look into setting some default scopes in Terraform, and follow up with the GKE team on why they allow you to disable the monitoring scope in the REST API but not in the console. |
Ok, so there should be a PR enabling by default monitoring and logging APIs. Is that going to fix it? |
Yeah, that would fix it. I'm just confirming with people in GKE whether we want to add any others to be enabled by default too. |
Just adding my 2¢: this is primarily an issue because you've turned off cloud logging & monitoring (which are on by default):
Starting in v1.9, this bug is fixed: we'll always add the |
I am almost sure that I am adding to both
|
Yes, that PR fixes the issue for |
I got this error using web console. |
I have to remove the taints |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Reporting the same as in:
hashicorp/terraform#16981
Probably this is more adequate place to put this.
Terraform Version
Terraform Configuration Files
Note: The error happens also when creating a
google_container_node_pool
Debug Output
Crash Output
Expected Behavior
The cluster is created within 15-30 minutes
Actual Behavior
Error from Google API:
All cluster resources were brought up, but the cluster API is reporting that only 0 nodes out of 1 have registered. Cluster may be unhealthy.
Steps to Reproduce
terraform init
terraform apply
Important Factoids
Running on the latest version of macOS (High Sierra)
References
The text was updated successfully, but these errors were encountered: