Skip to content
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

Disabling ASG process AZRebalance by default #369

Merged
merged 2 commits into from
May 7, 2019
Merged

Disabling ASG process AZRebalance by default #369

merged 2 commits into from
May 7, 2019

Conversation

max-rocket-internet
Copy link
Contributor

@max-rocket-internet max-rocket-internet commented May 2, 2019

PR o'clock

Description

Disabling ASG process AZRebalance by default.

I can't think of a single reason why this wouldn't be a good idea to have disabled by default? If the ASG makes any changes to your instances, they need to be drained first and not terminated at will by the ASG.

Checklist

  • terraform fmt and terraform validate both work from the root and examples/eks_test_fixture directories (look in CI for an example)
  • Tests for the changes have been added and passing (for bug fixes/features)
  • Test results are pasted in this PR (in lieu of CI)
  • I've added my change to CHANGELOG.md
  • Any breaking changes are highlighted above

@max-rocket-internet
Copy link
Contributor Author

Some extra info:
kubernetes/autoscaler#1802
kubernetes/kops#3319

@max-rocket-internet max-rocket-internet requested a review from a team May 3, 2019 14:46
@max-rocket-internet max-rocket-internet merged commit 1660105 into terraform-aws-modules:master May 7, 2019
@max-rocket-internet max-rocket-internet deleted the disable_azrebalance branch May 7, 2019 09:00
@rchernobelskiy
Copy link

One reason I can think of to leave it enabled would be to prevent pods being unschedulable due to their ebs volumes being in a zone without a node.
Or is there a better way to prevent that?
Seems like the recommended solution of asg per zone would be pretty convoluted terraform.

@max-rocket-internet
Copy link
Contributor Author

to prevent pods being unschedulable due to their ebs volumes being in a zone without a node.

This doesn't change the problem though: the ASG doesn't drain nodes gracefully, it just terminates them.

EBS volume AZ is a problem, regardless of this setting. I think yes you need an worker group per AZ then. And also ensure your cluster-autoscaler is configured correctly 🙂

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants