Skip to content

Commit

Permalink
feat(base-cluster/descheduler): run as deployment and enable promethe…
Browse files Browse the repository at this point in the history
…us (#838)
  • Loading branch information
cwrau authored Mar 28, 2024
1 parent 13be21b commit 47b7cdf
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion charts/base-cluster/templates/descheduler/descheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,22 @@ spec:
interval: 1h
driftDetection:
mode: enabled
{{- if .Values.monitoring.prometheus.enabled }}
dependsOn:
- name: kube-prometheus-stack
namespace: monitoring
{{- end }}
values:
cronJobApiVersion: {{ include "common.capabilities.cronjob.apiVersion" . }}
startingDeadlineSeconds: 120
priorityClassName: system-cluster-critical
kind: Deployment
{{- if .Values.monitoring.prometheus.enabled }}
service:
enabled: true
serviceMonitor:
enabled: true
additionalLabels: {{- toYaml .Values.monitoring.labels | nindent 8 }}
{{- end }}
deschedulerPolicy:
evictLocalStoragePods: true
strategies: {{- .Values.descheduler.strategies | toYaml | nindent 8 }}
Expand Down

0 comments on commit 47b7cdf

Please sign in to comment.