-
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
Update workload_metadata_config.node_metadata on node pools without force replacement. #4041
Update workload_metadata_config.node_metadata on node pools without force replacement. #4041
Comments
hashicorp/terraform-provider-google-beta#896 is tackling this, there's a bit of nuance because changing this value requires modifying certain values in node pools. |
Piggybacking on this issue, because the title covers my finding and the issue is still open. Feel free to ask me to create a separate issue. -- With hashicorp/terraform-provider-google-beta#896 (we use v2.13.0) it is possible to update the When you attempt to upgrade an existing nodepool by changing the config of a
Where as
A rolling reprovisioning of the nodepool nodes is of course preferred to ensure maximum pod availability. In the current state we can not use terraform to migrate existing node pools in production without scheduled downtime of all workloads running in the node pool. |
So if I understand correctly, the purpose of hashicorp/terraform-provider-google-beta#896 was to change the behavior so that enabling workload identity on GKE clusters via Terraform did not result in a need for GKE cluster recreation, but it didn't change the behavior that enabling workload identity on the GKE node pools causes them to recreate? |
That's correct @RochesterinNYC. I'll retitle this issue so it's about updating that field now that we support updating the cluster-level one. |
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! |
Community Note
Description
Workload Identity setting of
google_container_cluster
andgoogle_container_node_pool
is available ingoogle-beta
. However, enabling the Workload Identity setting on an existing cluster or node pool results in "force replacement" and will be recreated.If modify Workload Identity setting with
gcloud container clusters update
and/orgcloud container node-pool update
, cluster and node pool will not be re-created, and Pod and Service will remain as they are.I would prefer not to be force replacement for changing below configurations.
workload_identity_config.identity_namespace
ingoogle_container_cluster
node_config.workload_metadata_config.node_metadata
ingoogle_container_node_pool
New or Affected Resource(s)
Potential Terraform Configuration
The result of
terraform plan
is as follows.References
The text was updated successfully, but these errors were encountered: