diff --git a/charts/platform-api/Chart.yaml b/charts/platform-api/Chart.yaml index 2ff6fa3..7750ce1 100644 --- a/charts/platform-api/Chart.yaml +++ b/charts/platform-api/Chart.yaml @@ -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 diff --git a/charts/platform-api/templates/api-worker.yml b/charts/platform-api/templates/api-worker.yml index c8f833a..6c3c56c 100644 --- a/charts/platform-api/templates/api-worker.yml +++ b/charts/platform-api/templates/api-worker.yml @@ -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 }} diff --git a/charts/platform-api/values.yaml b/charts/platform-api/values.yaml index 139f4f1..a4c7888 100644 --- a/charts/platform-api/values.yaml +++ b/charts/platform-api/values.yaml @@ -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