-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 for cluster_autoscaling
#93
Comments
I was just looking at this module for this feature as we need to create clusters that have node auto-provisioning enabled. Is there any planned ETA (or workaround) for this? Thanks! |
It's not currently supported, but we should add it! Expected interface:
|
@morgante I know I'm asking a lot here, but any chance this could be added very soon? It's literally the only thing we're missing, in the module, to be able to migrate our current solution over to Terraform (this module looks too good to do it using the normal provider 😄) |
By the way, we need to be able to enable auto-scaling on a per-node pool level |
@thecodejunkie Can you clarify which kind of autoscaling you're looking for?
|
@morgante oh sorry, yes it's cluster autoscaling I was looking for. I've been unable to find any docs for the |
You can do it like this:
|
Absolutely, @neelesh9795 please make sure to document all autoscaling properties. |
it this format is fine?
and example of value
Can't set "enabled" field to same map as long has different type |
Yes, that works. |
Init commit
This reverts commit dacad7c
Added cluster auto scaling
Fixed autogen cluster config Updated docs Updated simple-regional-beta example
Fixed cluster auto scaling conditions
Added tests for cluster auto scaling
…o scaling" This reverts commit 5c29c90
Added tests for cluster auto scaling
Moved cluster autos scaling config to node_pool fixture to fix project networks quota
Added cluster auto scaling Updated docs Added tests for cluster auto scaling in node_pool fixture
Added cluster auto scaling Updated docs Added tests for cluster auto scaling in node_pool fixture
Added cluster auto scaling Updated docs Added tests for cluster auto scaling in node_pool fixture
Added cluster auto scaling Updated docs Added tests for cluster auto scaling in node_pool fixture
Updated docs Added tests for cluster autoscaling in node_pool fixture * Fix terraform-google-modules#93
Updated docs Added tests for cluster autoscaling in node_pool fixture * Fix terraform-google-modules#93
Simplified cluster autoscaling config
Simplified cluster autoscaling config
@morgante it seems both resource types and both limits (min and max) required on API level, on provider they are optional, for example this one will fail:
And more insetting this one as well:
The error output is:
So my question here, should we switch from map to object for variable as long all fields seems to be mandatory? |
@kopachevsky What happens if you only specify memory? From the response provided, it only calls out memory as required. |
@morgante Will send output later today, in a middle of other task now, but if specify only memory, without cpu - it also fails, only full set of args works |
Error: googleapi: Error 400: Resource limits for cpu must be specified when enabling node autoprovisioning., badRequest |
@kopachevsky In that case, we should indeed make it an object since all params are apparently required. |
Updated docs Added tests for cluster autoscaling in node_pool fixture * Fix terraform-google-modules#93
This is the node auto-provisioning feature that is supported by the
cluster_autoscaling
field.The text was updated successfully, but these errors were encountered: