Skip to content

Commit a7f4096

Browse files
authored
nodeSelector tolerations (#6)
1 parent 843bbc3 commit a7f4096

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

charts/pushgateway-cleaner/templates/cron.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ spec:
2424
type: cron
2525
spec:
2626
restartPolicy: OnFailure
27+
{{- with .Values.nodeSelector }}
28+
nodeSelector:
29+
{{- toYaml . | nindent 12 }}
30+
{{- end }}
31+
{{- with .Values.tolerations }}
32+
tolerations:
33+
{{- toYaml . | nindent 12 }}
34+
{{- end }}
2735
containers:
2836
- name: cleaner
2937
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"

charts/pushgateway-cleaner/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ image:
44
pullPolicy: IfNotPresent
55
cronSchedule: "*/5 * * * *"
66
metricUrl: "http://pushgateway-prometheus-pushgateway:9091/metrics"
7+
nodeSelector: {}
8+
tolerations: []

0 commit comments

Comments
 (0)