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

tolerationSeconds for tolerations for controller #588

Closed
zerkms opened this issue Oct 14, 2020 · 4 comments · Fixed by #776
Closed

tolerationSeconds for tolerations for controller #588

zerkms opened this issue Oct 14, 2020 · 4 comments · Fixed by #776
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.

Comments

@zerkms
Copy link
Contributor

zerkms commented Oct 14, 2020

Is your feature request related to a problem?/Why is this needed
At the moment tolerations for the controller deployment https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/aws-ebs-csi-driver/templates/controller.yaml looks like this:

      tolerations:
        - operator: Exists

which effectively allows it run everywhere. Which is fine. The problem is that with this toleration kubernetes won't reschedule the controller if a node where it runs suddenly becomes unavailable.

See https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/

Kubernetes automatically adds a toleration for node.kubernetes.io/not-ready and node.kubernetes.io/unreachable with tolerationSeconds=300, unless you, or a controller, set those tolerations explicitly.

(highlight is mine)

So, you run it with default replica count 2, then you get unlucky and both nodes where those replicas run die. Now you end up having no ebs controller whatsoever and it won't fix without manual intervention.

/feature

Describe the solution you'd like in detail
I think the default tolerationSeconds: 300 (configurable) should be added as well.

Describe alternatives you've considered
There is no, it's how kubernetes works.

Additional context

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 12, 2021
@ayberk
Copy link
Contributor

ayberk commented Jan 12, 2021

This sounds reasonable to me.

/lifecycle frozen
/good-first-issue

@k8s-ci-robot
Copy link
Contributor

@ayberk:
This request has been marked as suitable for new contributors.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-good-first-issue command.

In response to this:

This sounds reasonable to me.

/lifecycle frozen
/good-first-issue

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jan 12, 2021
@imbohyun1
Copy link

imbohyun1 commented Feb 19, 2021

Observed the managed node group update with 'Pod Eviction Failure'. While upgrading managed node group with launch template version up, the node is tainted and all the pods should be evicted. But the node running on 'ebs-csi-controller' pod is not tainted fully because the 'ebs-csi-contoller' has a toleration. kube-scheduler keeps scheduling 'ebs-csi-controller' pod to the node which should be drained, and it prevents pods eviction until it hits max retries. Created new case #758.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.
Projects
None yet
5 participants