Skip to content

Commit

Permalink
add tolerations
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelgloeckner authored Jan 29, 2024
1 parent 6c7ecb6 commit a855bdd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ spec:
nodeSelector:
{{- .Values.global.nodeSelector | toYaml | trim | nindent 8 }}
{{- end }}
{{- 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 }}
Expand Down
8 changes: 8 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ global:
# node selector for the pods
nodeSelector:

# tolerations for the pods
tolerations:
- key: "arch"
operator: "Equal"
value: "arm64"
effect: "NoSchedule"


# Name of the instance, default {{ .Release.Name }}-{{ .Values.name | default .Chart.Name }}
name:

Expand Down

0 comments on commit a855bdd

Please sign in to comment.