Closed 5nafu closed 7 months ago
Update PEBKAC
: I was missing an enabled
level on the plugin configuration. The pods starts now and the superfluous strategies
in the configmap
are accepted/ignored.
while we want on https://github.com/kubernetes-sigs/descheduler/pull/1139
you could add this to your values.yaml:
deschedulerPolicy:
strategies:
/kind support
FWIW, this works presently:
# https://github.com/kubernetes-sigs/descheduler/blob/master/charts/descheduler/values.yaml
---
kind: CronJob
cmdOptions:
v: 4
deschedulerPolicyAPIVersion: "descheduler/v1alpha2"
deschedulingInterval: 2m
deschedulerPolicy:
profiles:
- name: default
pluginConfig:
- name: RemoveDuplicates
plugins:
balance:
enabled:
- RemoveDuplicates
strategies:
thanks @a7i
Awesome. Please feel free to reopen if you run into any issues /close
@a7i: Closing this issue.
What version of descheduler are you using?
descheduler version: v0.28.0 Helm chart: descheduler-0.28.0
Does this issue reproduce with the latest release?
Yes
Which descheduler CLI options are you using?
Please provide a copy of your descheduler policy config file
What k8s version are you using (
kubectl version
)?kubectl version
OutputWhat did you do? When deploying descheduler via Helm chart and using the policy version
1alpha2
(see below for the values.yaml), the default strategy configuration will be added to the rendered configmap (also below).values.yaml
configmap
data/policy.yaml
What did you expect to see? A valid configmap for the descheduler
What did you see instead? The descheduler failing to start with the errormessage: