-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
GKE Nodepool adding tags & labels should not recreate #12620
Comments
Looks like tags and labels are updatable now Change label to |
@edwardmedia - would you like us to create another issue for label or can we track it here? |
@g-awmalik we can track labels over here. Let me update the subject |
Hello, here is the initial PR (under review) that allows to update nodepool labels without causing the nodepools to be re-created. |
…6941) Co-authored-by: Shuya Ma <87669292+shuyama1@users.noreply.github.com> Co-authored-by: Luca Prete <lucaprete@google.com> Signed-off-by: Modular Magician <magic-modules@google.com>
Co-authored-by: Shuya Ma <87669292+shuyama1@users.noreply.github.com> Co-authored-by: Luca Prete <lucaprete@google.com> Signed-off-by: Modular Magician <magic-modules@google.com> Signed-off-by: Modular Magician <magic-modules@google.com> Co-authored-by: Shuya Ma <87669292+shuyama1@users.noreply.github.com> Co-authored-by: Luca Prete <lucaprete@google.com>
If the node_pool is configured with auto scaling enabled then Update any metadata in node pool will FAIL with the following google error: "Updates for 'labels' are not supported in node pools with autoscaling enabled (as a workaround, consider temporarily disabling autoscaling or recreating the node pool with the updated values.)" You can publish this error back to the user, |
According to this doc since GKE 1.23.4-gke.300 nodepool labels may be modified in-place even if cluster auotscaler is enabled. |
Ah, just found this was released in provider version 4.48.0 (changelog)– should this issue be closed? |
Labels are possible, but network tags are not. I'll update the issue. It does seem possible to update them: https://cloud.google.com/kubernetes-engine/docs/how-to/autopilot-network-tags#standard_1 |
I believe this was resolved by GoogleCloudPlatform/magic-modules#6599 - even though the title of the PR (and the release note) talk about labels, the actual implementation seems to add support for updating network tags. |
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. |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Affected Resource(s)
Previous issue: #2532
The GKE API supports updating tags on an existing node pool; an operation is kicked off which adds network tags to all the existing node pools, similar to a version upgrade operation.
Currently, modifying tags on the
google_container_node_pool
resource causes it to be deleted & recreated. It feels like this behaviour should be changed to support the inline updating of existing node poolsMaintainer notes
The text was updated successfully, but these errors were encountered: