Skip to content

Commit

Permalink
added normal and standard tolerations
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelgloeckner authored Jan 30, 2024
1 parent a22eb98 commit 35c8ddd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 4 additions & 1 deletion templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ spec:
nodeSelector:
{{- .Values.global.nodeSelector | toYaml | trim | nindent 8 }}
{{- end }}
{{- if .Values.global.tolerations }}
{{- if .Values.tolerations }}
tolerations:
{{- .Values.tolerations | toYaml | trim | nindent 8 }}
{{- else if .Values.global.tolerations }}
tolerations:
{{- .Values.global.tolerations | toYaml | trim | nindent 8 }}
{{- end }}
Expand Down
10 changes: 4 additions & 6 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ global:

# 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:
# ID of the application instance, default
Expand Down Expand Up @@ -55,6 +50,9 @@ startupProbe:
# node selector for the pods
nodeSelector:

# tolerations for the pods
tolerations:

# pod
pod:
port: 8080
Expand Down

0 comments on commit 35c8ddd

Please sign in to comment.