Skip to content

Commit

Permalink
Merge pull request #3 from onecx/arm_support
Browse files Browse the repository at this point in the history
add tolerations
  • Loading branch information
andrejpetras authored Jan 30, 2024
2 parents 6c7ecb6 + fa29422 commit d540057
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ spec:
nodeSelector:
{{- .Values.global.nodeSelector | toYaml | trim | nindent 8 }}
{{- end }}
{{- if .Values.tolerations }}
nodeSelector:
{{- .Values.tolerations | toYaml | trim | nindent 8 }}
{{- else 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
7 changes: 7 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ 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:

Expand Down Expand Up @@ -51,6 +55,9 @@ template:
# node selector for the pods
nodeSelector:

# tolerations for the pods
tolerations:

# pod
pod:
port: 8080
Expand Down

0 comments on commit d540057

Please sign in to comment.