diff --git a/templates/deployment.yaml b/templates/deployment.yaml index a397b6b..a695b1d 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -53,6 +53,13 @@ spec: nodeSelector: {{- .Values.global.nodeSelector | toYaml | trim | nindent 8 }} {{- end }} + {{- if .Values.tolerations }} + nodeSelector: + {{- .Values.tolerations | toYaml | trim | nindent 8 }} + {{- else if .Values.global.tolerations }} + tolerations: + {{- .Values.global.tolerations | toYaml | trim | nindent 8 }} + {{- end }} containers: - name: {{ template "app.fullname" $ }} image: {{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }} diff --git a/values.yaml b/values.yaml index a6dc34a..ccc04bd 100644 --- a/values.yaml +++ b/values.yaml @@ -15,6 +15,10 @@ global: # node selector for the pods nodeSelector: + # tolerations for the pods + tolerations: + + # Name of the instance, default {{ .Release.Name }}-{{ .Values.name | default .Chart.Name }} name: @@ -51,6 +55,9 @@ template: # node selector for the pods nodeSelector: +# tolerations for the pods +tolerations: + # pod pod: port: 8080