Skip to content

Commit

Permalink
Merge pull request #139 from MediaMarktSaturn/application/add-tolerat…
Browse files Browse the repository at this point in the history
…ions-and-affinity

[Application] Add tolerations and affinity support
  • Loading branch information
heubeck authored Jul 30, 2024
2 parents d898283 + 4073c57 commit d55d4e8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/application/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ maintainers:
- name: MediaMarktSaturn
url: https://github.com/MediaMarktSaturn
appVersion: 1.0.0
version: 1.21.0
version: 1.22.0
8 changes: 8 additions & 0 deletions charts/application/templates/_podTemplate.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -357,4 +357,12 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{- toYaml .Values.tolerations | nindent 4 }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{- toYaml .Values.affinity | nindent 4 }}
{{- end }}
{{- end -}}
6 changes: 6 additions & 0 deletions charts/application/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -382,3 +382,9 @@ initDefaults:
cpu: 500m
memory: 100Mi
restartPolicy: Always

# List of tolerations, will be taken over like-for-like to pod-spec
tolerations: []

# Affinity object, will be taken over like-for-like as well
affinity: {}

0 comments on commit d55d4e8

Please sign in to comment.