-
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
node_count is required #3485
node_count is required #3485
Conversation
Without node_count, autoscaling will never kick in because e.g. 0 is not between 2 and 5.
Hi @minac, I'm not convinced this is the correct approach. This variable essentially says "node count should be X, hard stop". If autoscaling is also defined, then it won't work: any time terraform is re-run, it'll try to set the node count back to whatever was defined in the configuration. Instead, I'd recommend using Because either |
Hi @danawillow! Using initial_node_count seems like a better alternative. I just wish it was required to avoid the issue described above. If one does not use the field and sets the min of an autoscaling group to 2 and max to 4, the cluster will never create correctly, because it will never reach the minimum. |
Neither field should be required though, because they both have their use cases. I think the correct approach is not to say that the field is required, but instead to add a note to the autoscaling docs to say that it only works if the initial node count starts in that range. |
Sounds good |
Based on https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#my-cluster-is-below-minimum--above-maximum-number-of-nodes-but-ca-did-not-fix-that-why, I don't think that your |
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Without node_count, autoscaling will never kick in because e.g. 0 is not between 2 and 5.