-
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
Add support to increase number of sole tenant nodes in node group #4275
Add support to increase number of sole tenant nodes in node group #4275
Comments
No one owning this issue :( |
Thanks for the request. We have looked at adding support for this, but it is quite a difficult task in terraform due to the one-way direction of adding a node. We are exploring ways to support this functionality, so I'll leave this issue open. |
This was brought up to cover autoscaling policies as well internally, which we don't super support without using
Note that users are already able to specify # works today
resource "google_compute_node_group" "nodes" {
name = "soletenant-group"
node_template = google_compute_node_template.soletenant-tmpl.id
size = 1
} resource "google_compute_node_group" "nodes" {
name = "soletenant-group"
node_template = google_compute_node_template.soletenant-tmpl.id
initial_size = 1
} # works today
resource "google_compute_node_group" "nodes" {
name = "soletenant-group"
node_template = google_compute_node_template.soletenant-tmpl.id
size = 1
autoscaling_policy {
mode = "ON"
min_nodes = 1
max_nodes = 10
}
lifecycle {
ignore_changes = ["size"]
}
} resource "google_compute_node_group" "nodes" {
name = "soletenant-group"
node_template = google_compute_node_template.soletenant-tmpl.id
initial_size = 1
autoscaling_policy {
mode = "ON"
min_nodes = 1
max_nodes = 10
}
} It's possible that this will be difficult/impossible to implement with our current code generator, in which case we can defer fixing it. I believe it'll be possible (specifically, I think we can |
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
Description
Currently increasing number of sole tenant nodes in the node group is not supported. and can see a warning message on the resource page stating that "Due to limitations of the API, Terraform cannot update the number of nodes in a node group and changes to node group size either through Terraform config or through external changes will cause Terraform to delete and recreate the node group" but I could see addNodes api in GCP doc, please find the reference link and enhance the node group rosource
https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups/addNodes
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: