gridscale / terraform-provider-gridscale

Terraform gridscale provider
https://registry.terraform.io/providers/gridscale/gridscale/latest/docs
Mozilla Public License 2.0
12 stars 11 forks source link

gsk autoscaler not working properly with Terraform Provider #236

Open FloSchick opened 1 year ago

FloSchick commented 1 year ago

Thanks for adding autoscaling capabilities to gsk, however the current implementation is not optimal when using it with the terraform provider. After successful upscaling, the tf-provider wants to delete that node an the next apply run.

The only viable solution to this is adding ignore_changes to the cluster:

lifecycle {
    ignore_changes = [ node_pool.0.node_count]
  }

This is also not optimal as you lose the ability to manually increase node size with terraform. Are there any plans to integrate the autoscaling feature into the gsk platform and adding it to the terraform provider as variables of the cluster, as most providers implement it like that?

nvthongswansea commented 1 year ago

@FloSchick thank you for reporting this issue. We will look into it.