mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-25 20:59:28 +01:00
* Move values.yaml comment about defining your own configmap to a NOTES.txt output instead Signed-off-by: Thomas D. Spear <81998567+tspearconquest@users.noreply.github.com> * Stop a blank line from being rendered when leader election is not enabled Signed-off-by: Thomas D. Spear <81998567+tspearconquest@users.noreply.github.com> * Remove 'default' from the language of the new note Signed-off-by: Thomas D. Spear <81998567+tspearconquest@users.noreply.github.com> --------- Signed-off-by: Thomas D. Spear <81998567+tspearconquest@users.noreply.github.com>
23 lines
1.1 KiB
Plaintext
23 lines
1.1 KiB
Plaintext
Descheduler installed as a {{ .Values.kind }}.
|
|
|
|
{{- if eq .Values.kind "Deployment" }}
|
|
{{- if eq (.Values.replicas | int) 1 }}
|
|
WARNING: You set replica count as 1 and workload kind as Deployment however leaderElection is not enabled. Consider enabling Leader Election for HA mode.
|
|
{{- end}}
|
|
{{- if .Values.leaderElection }}
|
|
{{- if and (hasKey .Values.cmdOptions "dry-run") (eq (get .Values.cmdOptions "dry-run") true) }}
|
|
WARNING: You enabled DryRun mode, you can't use Leader Election.
|
|
{{- end}}
|
|
{{- end}}
|
|
{{- end}}
|
|
{{- if .Values.deschedulerPolicy }}
|
|
A DeschedulerPolicy has been applied for you. You can view the policy with:
|
|
|
|
kubectl get configmap -n {{ include "descheduler.namespace" . }} {{ template "descheduler.fullname" . }} -o yaml
|
|
|
|
If you wish to define your own policies out of band from this chart, you may define a configmap named {{ template "descheduler.fullname" . }}.
|
|
To avoid a conflict between helm and your out of band method to deploy the configmap, please set deschedulerPolicy in values.yaml to an empty object as below.
|
|
|
|
deschedulerPolicy: {}
|
|
{{- end }}
|