-
Notifications
You must be signed in to change notification settings - Fork 41
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 option to deregister node before draining. #231
Conversation
d8f5148
to
a9d074f
Compare
Address the comments with name change and updated readme.md. |
README.md
Outdated
To enable this feature, go to `.env`, change `EXCLUDE_FROM_LB_WAIT_TIME_IN_SEC` to a positive integer value, | ||
run `cargo build` to regenerate `bottlerocket-update-operator.yaml` and follow the normal installation guideline. |
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 think instead of directing folks to rebuild the project, we should have folks modify the .yaml
document describing the pod deployment to modify the environment variable.
When we begin delivering this as a Helm chart, we can make that variable configurable via Helm.
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.
Updated readme using .yaml for user. I would like to have a separate PR to update the development part.
* Exclude node from load balancer before draining when EXCLUDE_FROM_LB_WAIT_TIME_IN_SEC is larger than 0. * Remove node exclusion from load balancer after draining when EXCLUDE_FROM_LB_WAIT_TIME_IN_SEC is larger than 0.
Issue number:
#156
Description of changes:
DEREGISTER_FROM_LB_WAIT_TIME_IN_SEC
in.env
as environment variable.when DEREGISTER_FROM_LB_WAIT_TIME_IN_SEC is larger than 0.
when DEREGISTER_FROM_LB_WAIT_TIME_IN_SEC is larger than 0.
Testing done:
Tested on cluster, monitored node get labeled and unlabeled.
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.