From b5245099267bfb3d012a65ae873b4e9241440c5f Mon Sep 17 00:00:00 2001 From: Gabriel Klug Date: Wed, 27 Sep 2023 17:11:40 -0300 Subject: [PATCH] feat(helm chart): add toleration definition --- chart/pod-reaper/templates/deployment.yaml | 5 ++++- chart/pod-reaper/values.yaml | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/chart/pod-reaper/templates/deployment.yaml b/chart/pod-reaper/templates/deployment.yaml index 505ef2a..5e42f5b 100644 --- a/chart/pod-reaper/templates/deployment.yaml +++ b/chart/pod-reaper/templates/deployment.yaml @@ -33,7 +33,10 @@ spec: {{- end }} resources: {{ toYaml $.Values.resources | indent 12 }} - + {{- with $.Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} --- {{- end -}} diff --git a/chart/pod-reaper/values.yaml b/chart/pod-reaper/values.yaml index 64fc5b4..bde1fe8 100644 --- a/chart/pod-reaper/values.yaml +++ b/chart/pod-reaper/values.yaml @@ -37,3 +37,9 @@ resources: requests: cpu: 20m memory: 20Mi + +tolerations: [] + # - key: somekey + # value: somevalue + # effect: NoSchedule + # operator: Equal