Skip to content

Commit e0078f6

Browse files
committed
platform-api: add some support for tolerations and node selection
1 parent b0bc2b0 commit e0078f6

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

charts/platform-api/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: v1
22
name: ushahidi-platform-api
3-
version: 0.0.1-alpha.33
3+
version: 0.0.1-alpha.34
44
icon: https://github.ushahidi.org/helm-charts/icon.png

charts/platform-api/templates/api-worker.yml

+8
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,14 @@ spec:
295295
requests:
296296
cpu: {{ .Values.api.requests.cpu }}
297297
memory: {{ .Values.api.requests.memory }}
298+
{{- if .Values.api.tolerations }}
299+
tolerations:
300+
{{ toYaml .Values.api.tolerations | indent 10 }}
301+
{{- end }}
302+
{{- if .Values.api.nodeSelector }}
303+
nodeSelector:
304+
{{ toYaml .Values.api.nodeSelector | indent 10 }}
305+
{{- end }}
298306
{{- if or (.Values.config.dotenv) (.Values.config.dotenv_secret) (.Values.config.passport_keys_secret) }}
299307
volumes:
300308
{{- if .Values.config.dotenv }}

charts/platform-api/values.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ api:
131131
requests:
132132
cpu: "10m"
133133
memory: "64Mi"
134+
# tolerations:
135+
# - effect: NoSchedule
136+
# key: requires-label-match
137+
# operator: Exists
138+
# nodeSelector:
139+
# node-group: "1core-perf"
134140
startupProbe:
135141
initialDelaySeconds: 5
136142
periodSeconds: 1

0 commit comments

Comments
 (0)