1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 05:14:13 +01:00

Add nodeSelector to cronJob helm chart

This commit is contained in:
Mike Dame
2021-01-09 11:31:49 -05:00
parent f54df67d11
commit 9c01589fb9
3 changed files with 8 additions and 0 deletions

View File

@@ -63,3 +63,4 @@ The following table lists the configurable parameters of the _descheduler_ chart
| `resources.memoryRequest` | Descheduler container memory request | `256Mi` |
| `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` |

View File

@@ -33,6 +33,10 @@ spec:
{{- .Values.podLabels | toYaml | nindent 12 }}
{{- end }}
spec:
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}

View File

@@ -58,6 +58,9 @@ deschedulerPolicy:
priorityClassName: system-cluster-critical
nodeSelector: {}
# foo: bar
rbac:
# Specifies whether RBAC resources should be created
create: true