You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment. If the issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If the issue is assigned to a user, that user is claiming responsibility for the issue. If the issue is assigned to "hashibot", a community member has claimed the issue already.
Description
I've spent a week trying to stop my system from trying to recreate its cluster on unrelated changes, or after timeout failures while provisioning the system. This involved trying many different examples from published tutorials on the web, as well as searching through issues on this Github and looking for relevant questions on stackoverflow. I reduced the problem to its simplest form, by trying to manage a cluster using exactly the recommended usage for google_container_cluster.
Eventually, I stumbled across #3369, which was the root cause of my problem.
The problem is that Terraform behavior is described by authors using many different terms: idempotent, change, recreate, etc. It's very hard to find all relevant mentions of Terraform recreating a resource (like a cluster) by Google searching.
Until provider 3.0.0 can be released with fixes to the lifecycle issues, it might make sense to document the workarounds mentioned in that issue in the recommended usage documentation.
New or Affected Resource(s)
google_container_cluster
Potential Terraform Configuration
resource"google_container_cluster""primary" {
name="my-gke-cluster"location="us-central1-f"# We can't create a cluster with no node pool defined, but we want to only use# separately managed node pools. So we create the smallest possible default# node pool and immediately delete it.remove_default_node_pool=trueinitial_node_count=1# Setting an empty username and password explicitly disables basic authmaster_auth {
username=""password=""
}
# Workaround for issue 3369.lifecycle {
ignore_changes=["master_auth", "network"]
}
}
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!
ghost
locked and limited conversation to collaborators
Jun 29, 2019
Community Note
Description
I've spent a week trying to stop my system from trying to recreate its cluster on unrelated changes, or after timeout failures while provisioning the system. This involved trying many different examples from published tutorials on the web, as well as searching through issues on this Github and looking for relevant questions on stackoverflow. I reduced the problem to its simplest form, by trying to manage a cluster using exactly the recommended usage for google_container_cluster.
Eventually, I stumbled across #3369, which was the root cause of my problem.
The problem is that Terraform behavior is described by authors using many different terms: idempotent, change, recreate, etc. It's very hard to find all relevant mentions of Terraform recreating a resource (like a cluster) by Google searching.
Until provider 3.0.0 can be released with fixes to the lifecycle issues, it might make sense to document the workarounds mentioned in that issue in the recommended usage documentation.
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: