1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-25 20:59:28 +01:00

Merge pull request #480 from damemi/nodeselector-cronjob

Add nodeSelector to cronJob helm chart
This commit is contained in:
Kubernetes Prow Robot
2021-02-09 10:32:59 -08:00
committed by GitHub
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