Add support for specifying nodeSelectors and tolerations to rancher-alerting/rancher-alerting-drivers

pull/1813/head
Arvind Iyengar 2022-03-17 16:06:32 -07:00
parent b56eae4af1
commit 2ee772ff8e
No known key found for this signature in database
GPG Key ID: A8DD9BFD6C811498
2 changed files with 13 additions and 0 deletions

View File

@ -17,7 +17,13 @@ spec:
runAsUser: 1000
restartPolicy: Never
nodeSelector: {{ include "linux-node-selector" . | nindent 8 }}
{{- if .Values.nodeSelector }}
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
tolerations: {{ include "linux-node-tolerations" . | nindent 8 }}
{{- if .Values.tolerations }}
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
containers:
- name: {{ include "drivers.fullname" . }}-patch-sa
image: "{{ include "system_default_registry" . }}{{ .Values.global.kubectl.repository }}:{{ .Values.global.kubectl.tag }}"

View File

@ -18,3 +18,10 @@ prom2teams:
sachet:
enabled: false
## Node labels for pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
nodeSelector: {}
## List of node taints to tolerate (requires Kubernetes >= 1.6)
tolerations: []