diff --git a/charts/descheduler/templates/cronjob.yaml b/charts/descheduler/templates/cronjob.yaml index a2d488bfc..6a7a6b662 100644 --- a/charts/descheduler/templates/cronjob.yaml +++ b/charts/descheduler/templates/cronjob.yaml @@ -51,6 +51,10 @@ spec: affinity: {{- toYaml . | nindent 12 }} {{- end }} + {{- if .Values.dnsConfig }} + dnsConfig: + {{- .Values.dnsConfig | toYaml | nindent 12 }} + {{- end }} {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 12 }} diff --git a/charts/descheduler/templates/deployment.yaml b/charts/descheduler/templates/deployment.yaml index 89a33ee18..a00ab7bc6 100644 --- a/charts/descheduler/templates/deployment.yaml +++ b/charts/descheduler/templates/deployment.yaml @@ -31,6 +31,10 @@ spec: {{- .Values.podAnnotations | toYaml | nindent 8 }} {{- end }} spec: + {{- if .Values.dnsConfig }} + dnsConfig: + {{- .Values.dnsConfig | toYaml | nindent 8 }} + {{- end }} {{- if .Values.priorityClassName }} priorityClassName: {{ .Values.priorityClassName }} {{- end }} diff --git a/charts/descheduler/values.yaml b/charts/descheduler/values.yaml index abc6f5053..0500c3462 100644 --- a/charts/descheduler/values.yaml +++ b/charts/descheduler/values.yaml @@ -172,6 +172,8 @@ podAnnotations: {} podLabels: {} +dnsConfig: {} + livenessProbe: failureThreshold: 3 httpGet: