-
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
Feature: Add autoscaling profiles #456
Feature: Add autoscaling profiles #456
Conversation
autogen/main/cluster.tf.tmpl
Outdated
@@ -68,7 +68,8 @@ resource "google_container_cluster" "primary" { | |||
|
|||
{% if beta_cluster %} | |||
cluster_autoscaling { | |||
enabled = var.cluster_autoscaling.enabled | |||
enabled = var.cluster_autoscaling.enabled | |||
autoscaling_profile = var.cluster_autoscaling.autoscaling_profile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we set a default here (BALANCED)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have the default in the cluster_autoscaling to BALANCED.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, but that default will only be applied if cluster_autoscaling
is omitted entirely. I should be able to specify autoscaling_profile = null
to get a sane default (or should the default be disabled?).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, yes good point; will update :)
…_autoscaling (terraform-google-modules#456) * add autoscaling_profile * default to balanced if autoscaling_profile is null * default to balanced if autoscaling_profile is null
Fixes #455