Skip to content

Commit

Permalink
Add tolerations to helm for deployment (#143)
Browse files Browse the repository at this point in the history
Signed-off-by: ldruwel <[email protected]>
Co-authored-by: ldruwel <[email protected]>
Co-authored-by: Joshua Wright <[email protected]>
  • Loading branch information
3 people committed Feb 21, 2024
1 parent c7ff935 commit e3f356a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deploy/charts/version-checker/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ spec:
{{- end }}
spec:
serviceAccountName: {{ $chartname }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | trim | nindent 8 }}
{{- end }}
containers:
- name: {{ $chartname }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
Expand Down
4 changes: 4 additions & 0 deletions deploy/charts/version-checker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ image:
# -- Set the Image Pull Policy
pullPolicy: IfNotPresent

# -- Configure tolerations
tolerations: []

# -- Configure version-checkers Service
service:
labels: {}
Expand Down Expand Up @@ -97,6 +100,7 @@ selfhosted:
# password: bar
# token:


# -- Setup version-checkers resource requests/limits
resources:
{}
Expand Down

0 comments on commit e3f356a

Please sign in to comment.