From 064773fbd7996a884c8268b85f9be389c5ef83e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Piliszek?= Date: Fri, 19 Apr 2024 12:50:38 +0200 Subject: [PATCH] [chart] Add missing selectors Change-Id: I511455b7733498b0fda3a180838906ee68e957b0 --- .../templates/deployment-postgres.yaml | 12 ++++++++++++ .../templates/frontend.yaml | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/charts/nebulous-cloud-fog-service-broker/templates/deployment-postgres.yaml b/charts/nebulous-cloud-fog-service-broker/templates/deployment-postgres.yaml index 1acb03b..b8e1f06 100644 --- a/charts/nebulous-cloud-fog-service-broker/templates/deployment-postgres.yaml +++ b/charts/nebulous-cloud-fog-service-broker/templates/deployment-postgres.yaml @@ -40,6 +40,18 @@ spec: mountPath: /var/lib/postgresql/data/ - name: init-script mountPath: /docker-entrypoint-initdb.d + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} --- diff --git a/charts/nebulous-cloud-fog-service-broker/templates/frontend.yaml b/charts/nebulous-cloud-fog-service-broker/templates/frontend.yaml index 245806c..9d6184a 100644 --- a/charts/nebulous-cloud-fog-service-broker/templates/frontend.yaml +++ b/charts/nebulous-cloud-fog-service-broker/templates/frontend.yaml @@ -26,6 +26,18 @@ spec: value: {{ .Values.env.backendHost }} - name: VITE_BACKEND_URL value: {{ .Values.env.backendHost }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} --- apiVersion: v1 kind: Service