diff --git a/charts/descheduler/README.md b/charts/descheduler/README.md index bc24f59b6..b24a105cf 100644 --- a/charts/descheduler/README.md +++ b/charts/descheduler/README.md @@ -65,3 +65,4 @@ The following table lists the configurable parameters of the _descheduler_ chart | `serviceAccount.create` | If `true`, create a service account for the cron job | `true` | | `serviceAccount.name` | The name of the service account to use, if not set and create is true a name is generated using the fullname template | `nil` | | `nodeSelector` | Node selectors to run the descheduler cronjob on specific nodes | `nil` | +| `tolerations` | tolerations to run the descheduler cronjob on specific nodes | `nil` | \ No newline at end of file diff --git a/charts/descheduler/templates/cronjob.yaml b/charts/descheduler/templates/cronjob.yaml index f9e22b545..2d6c094f8 100644 --- a/charts/descheduler/templates/cronjob.yaml +++ b/charts/descheduler/templates/cronjob.yaml @@ -37,6 +37,10 @@ spec: nodeSelector: {{- toYaml . | nindent 12 }} {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 12 }} + {{- end }} {{- if .Values.priorityClassName }} priorityClassName: {{ .Values.priorityClassName }} {{- end }} diff --git a/charts/descheduler/values.yaml b/charts/descheduler/values.yaml index 5574100c2..16ee3be81 100644 --- a/charts/descheduler/values.yaml +++ b/charts/descheduler/values.yaml @@ -64,6 +64,12 @@ priorityClassName: system-cluster-critical nodeSelector: {} # foo: bar +tolerations: [] +# - key: 'management' +# operator: 'Equal' +# value: 'tool' +# effect: 'NoSchedule' + rbac: # Specifies whether RBAC resources should be created create: true