From c7fb35c8df976ff328947734324d1e9729ba22a1 Mon Sep 17 00:00:00 2001 From: Nicolas Maillat Date: Mon, 14 Oct 2024 21:29:00 +0200 Subject: [PATCH] adding nodeSelector --- infra/helm/zippy/Chart.yaml | 2 +- infra/helm/zippy/templates/api-deployment.yaml | 3 +++ infra/helm/zippy/templates/cron-deployment.yaml | 3 +++ infra/helm/zippy/templates/rabbitmq-deployment.yaml | 3 +++ infra/helm/zippy/templates/worker-deployment.yaml | 3 +++ infra/helm/zippy/values.yaml | 2 ++ 6 files changed, 15 insertions(+), 1 deletion(-) diff --git a/infra/helm/zippy/Chart.yaml b/infra/helm/zippy/Chart.yaml index 62b039c..2e49148 100644 --- a/infra/helm/zippy/Chart.yaml +++ b/infra/helm/zippy/Chart.yaml @@ -14,7 +14,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 0.1.9 +version: 0.1.10-alpha1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. diff --git a/infra/helm/zippy/templates/api-deployment.yaml b/infra/helm/zippy/templates/api-deployment.yaml index 2832ab7..7e724d2 100644 --- a/infra/helm/zippy/templates/api-deployment.yaml +++ b/infra/helm/zippy/templates/api-deployment.yaml @@ -15,6 +15,9 @@ spec: app: zippy tier: api spec: + {{- if $.Values.nodeSelector }} + nodeSelector: {{ toYaml $.Values.nodeSelector | nindent 8 }} + {{- end }} volumes: - name: data {{- if .persistence.enabled }} diff --git a/infra/helm/zippy/templates/cron-deployment.yaml b/infra/helm/zippy/templates/cron-deployment.yaml index a950c28..e7c975e 100644 --- a/infra/helm/zippy/templates/cron-deployment.yaml +++ b/infra/helm/zippy/templates/cron-deployment.yaml @@ -15,6 +15,9 @@ spec: app: zippy tier: cron spec: + {{- if $.Values.nodeSelector }} + nodeSelector: {{ toYaml $.Values.nodeSelector | nindent 8 }} + {{- end }} volumes: - name: data {{- if .persistence.enabled }} diff --git a/infra/helm/zippy/templates/rabbitmq-deployment.yaml b/infra/helm/zippy/templates/rabbitmq-deployment.yaml index 8a2f7a4..da8e3fb 100644 --- a/infra/helm/zippy/templates/rabbitmq-deployment.yaml +++ b/infra/helm/zippy/templates/rabbitmq-deployment.yaml @@ -18,6 +18,9 @@ spec: app: zippy tier: rabbitmq spec: + {{- if $.Values.nodeSelector }} + nodeSelector: {{ toYaml $.Values.nodeSelector | nindent 8 }} + {{- end }} volumes: - name: rabbitmq {{- if .persistence.enabled }} diff --git a/infra/helm/zippy/templates/worker-deployment.yaml b/infra/helm/zippy/templates/worker-deployment.yaml index 406e3bd..6c62f25 100644 --- a/infra/helm/zippy/templates/worker-deployment.yaml +++ b/infra/helm/zippy/templates/worker-deployment.yaml @@ -15,6 +15,9 @@ spec: app: zippy tier: worker spec: + {{- if $.Values.nodeSelector }} + nodeSelector: {{ toYaml $.Values.nodeSelector | nindent 8 }} + {{- end }} volumes: - name: data {{- if .persistence.enabled }} diff --git a/infra/helm/zippy/values.yaml b/infra/helm/zippy/values.yaml index 5b101d9..7780a60 100644 --- a/infra/helm/zippy/values.yaml +++ b/infra/helm/zippy/values.yaml @@ -5,6 +5,8 @@ image: fullnameOverride: nameOverride: +nodeSelector: {} + rabbitmq: enabled: true username: zippy