-
Notifications
You must be signed in to change notification settings - Fork 701
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
RemovePodsHavingTooManyRestarts plugin doesn't delete pods #1579
Comments
here is my policy policy.yaml: | here is my logs I1218 13:52:03.689278 1 profile.go:345] "Total number of pods evicted" extension point="Balance" evictedPods=0 i have 10+ pods with more than 100 restarts. i switch states (pending, running, crashloop, etc) thre is no results |
How many nodes do you have? The descheduler does not seem to work on a single node. |
I also reproduced this problem:
|
@ingvagabund @a7i /PTAL Is there something wrong with the configuration? |
install step
|
11 workers |
is it solution? |
@googs1025 would you please increase the log level to 4 at least? To see if there are any violations of the filters in https://github.com/kubernetes-sigs/descheduler/blob/master/pkg/framework/plugins/defaultevictor/defaultevictor.go#L262. |
I used pod before, which does not support eviction I0213 12:48:01.363836 1 defaultevictor.go:262] "Pod fails the following checks" pod="default/always-restart-pod" checks="pod does not have any ownerRefs"
use deployment, running as expected I0213 13:10:01.358557 1 round_trippers.go:470] POST https://10.96.0.1:443/api/v1/namespaces/default/pods/always-restart-deployment-5d79459748-g4rvs/eviction
I0213 13:10:01.369388 1 evictions.go:551] "Evicted pod" pod="default/always-restart-deployment-5d79459748-g4rvs" reason="" strategy="RemovePodsHavingTooManyRestarts" node="dra-example-driver-cluster-worker" profile="default"
I0213 13:10:01.369587 1 defaultevictor.go:262] "Pod fails the following checks" pod="default/always-restart-deployment-5d79459748-g4rvs" checks="pod is terminating"
I0213 13:10:01.369837 1 defaultevictor.go:262] "Pod fails the following checks" pod="default/always-restart-deployment-5d79459748-g4rvs" checks="pod is terminating"
I0213 13:10:01.370157 1 defaultevictor.go:262] "Pod fails the following checks" pod="default/always-restart-deployment-5d79459748-g4rvs" checks="pod is terminating"
I0213 13:10:01.370407 1 defaultevictor.go:262] "Pod fails the following checks" pod="default/always-restart-deployment-5d79459748-g4rvs" checks="pod is terminating"
|
@daniglyk You can confirm whether it is created using the controller. descheduler/pkg/framework/plugins/defaultevictor/defaultevictor.go Lines 90 to 98 in fa3fb4e
|
So it sounds like you need to enable |
Tasks
The text was updated successfully, but these errors were encountered: