Skip to content

Commit

Permalink
platform-api: add some support for tolerations and node selection
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxpiper committed Oct 10, 2024
1 parent b0bc2b0 commit e0078f6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/platform-api/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
name: ushahidi-platform-api
version: 0.0.1-alpha.33
version: 0.0.1-alpha.34
icon: https://github.ushahidi.org/helm-charts/icon.png
8 changes: 8 additions & 0 deletions charts/platform-api/templates/api-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,14 @@ spec:
requests:
cpu: {{ .Values.api.requests.cpu }}
memory: {{ .Values.api.requests.memory }}
{{- if .Values.api.tolerations }}
tolerations:
{{ toYaml .Values.api.tolerations | indent 10 }}
{{- end }}
{{- if .Values.api.nodeSelector }}
nodeSelector:
{{ toYaml .Values.api.nodeSelector | indent 10 }}
{{- end }}
{{- if or (.Values.config.dotenv) (.Values.config.dotenv_secret) (.Values.config.passport_keys_secret) }}
volumes:
{{- if .Values.config.dotenv }}
Expand Down
6 changes: 6 additions & 0 deletions charts/platform-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ api:
requests:
cpu: "10m"
memory: "64Mi"
# tolerations:
# - effect: NoSchedule
# key: requires-label-match
# operator: Exists
# nodeSelector:
# node-group: "1core-perf"
startupProbe:
initialDelaySeconds: 5
periodSeconds: 1
Expand Down

0 comments on commit e0078f6

Please sign in to comment.