-
Notifications
You must be signed in to change notification settings - Fork 662
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
Clarify descheduler handling of StatefulSets #519
Comments
Based on the below code block I believe that the descheduler will consider StatefulSets for eviction. descheduler/pkg/descheduler/evictions/evictions.go Lines 218 to 249 in 6abfa23
If I'm correct then the docs here just need to be updated to indicate that StatefulSet pods are considered for eviction in addition to RC, RS, Deployment and Job. If the ask is to add a feature to have an option to include/exclude StatefulSet pods then this would be a feature enhancement request. Keep in mind there are already many other ways to have the descheduler include/exclude pods. https://github.com/kubernetes-sigs/descheduler#filter-pods Also, starting with the upcoming descheduler v0.21.0 release there will be an |
I created PR #520 to document the current behavior. @lindhe is updating the documentation good enough to close this issue or do you want to discuss a feature for excluding StatefulSets further? From my perspective I think the descheduler has enough options to choose which pods are considered or not considered for eviction, but we welcome feedback if the current functionality does not fit your needs. |
Cool, thanks a lot for the PR! Having it documented properly was the most important part in my view. I may continue the discussion to understand better why sts by their nature are not excluded, but if I continue that thread it can surely be done without this Issue open. Let's mark this as closed when the PR is merged. |
/assign |
/kind documentation |
Tasks to complete before closing this issue:
|
@seanmalloy do you still want to implement e2e for this? |
@ingvagabund yes I was going to wait until #535 is merged. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
@seanmalloy The PR is merged |
FYI ... I'm still going to submit a PR to implement the e2e tests. I had to take a break for a bit. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
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. |
It's clear to me from the documentation that "Pods with local storage are never evicted (unless
evictLocalStoragePods: true
is set)", which makes sense since that indicates that the application is stateful and thus cannot be restarted as surely as a stateful app would. I would assume the same logic holds for pods inStatefulSets
, but I find no documentation about that.If my assumption is correct:we should add that to the documentation.If my assumption is incorrect:
I suggest we reconsider that design choice.If I'm missing something here, please fill me in.
The text was updated successfully, but these errors were encountered: