kubernetes-sigs / descheduler

Descheduler for Kubernetes
https://sigs.k8s.io/descheduler
Apache License 2.0
4.23k stars 645 forks source link

Default deschedulerPolicy in helm chart causes crashloop #1411

Open duplabe opened 1 month ago

duplabe commented 1 month ago

What version of descheduler are you using?

descheduler version: v0.30.0

Does this issue reproduce with the latest release?

Yes.

Which descheduler CLI options are you using?

I'm using the helm chart v0.30.0

Please provide a copy of your descheduler policy config file

It's the default comming with the chart.

What k8s version are you using (kubectl version)?

kubectl version Output
$ kubectl version
Client Version: v1.30.1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.30.0+k3s1

What did you do?

I use the helm chart with the default options to deploy descheduler into my k8s cluster.

What did you expect to see?

Descheduler running successfully.

What did you see instead?

Descheduler throws config errors.

E0521 16:16:02.890228       1 run.go:74] "command failed" err="failed decoding descheduler's policy config \"/policy-dir/policy.yaml\": strict decoding error: unknown field \"nodeAffinityType\""

I will open a PR with my changes on the default profile.

duplabe commented 1 month ago

PR with possible fix: https://github.com/kubernetes-sigs/descheduler/pull/1412

a7i commented 1 month ago

Fixed in #1412 - we'll work on getting a v0.30.1 out in the next week or so