diff --git a/templates/deployment.yaml b/templates/deployment.yaml index fa12671..b73b89b 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -42,6 +42,13 @@ spec: {{- else if .Values.global.nodeSelector }} nodeSelector: {{- .Values.global.nodeSelector | toYaml | trim | nindent 8 }} + {{- end }} + {{- if .Values.tolerations }} + tolerations: + {{- .Values.tolerations | toYaml | trim | nindent 8 }} + {{- else if .Values.global.tolerations }} + tolerations: + {{- .Values.global.tolerations | toYaml | trim | nindent 8 }} {{- end }} containers: - name: {{ include "app-angular.fullname" . }} diff --git a/values.yaml b/values.yaml index c8d8291..e1933b1 100644 --- a/values.yaml +++ b/values.yaml @@ -13,6 +13,9 @@ 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: # ID of the application instance, default @@ -47,6 +50,9 @@ startupProbe: # node selector for the pods nodeSelector: +# tolerations for the pods +tolerations: + # pod pod: port: 8080