diff --git a/deploy/helm/multica/templates/backend.yaml b/deploy/helm/multica/templates/backend.yaml index 44d5c79da..19c44051d 100644 --- a/deploy/helm/multica/templates/backend.yaml +++ b/deploy/helm/multica/templates/backend.yaml @@ -104,6 +104,14 @@ spec: periodSeconds: 30 resources: {{- toYaml .Values.backend.resources | nindent 12 }} + {{- with .Values.backend.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.backend.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} {{- if .Values.backend.uploads.persistence.enabled }} volumes: - name: uploads diff --git a/deploy/helm/multica/templates/frontend.yaml b/deploy/helm/multica/templates/frontend.yaml index 0c715168f..f756e4e71 100644 --- a/deploy/helm/multica/templates/frontend.yaml +++ b/deploy/helm/multica/templates/frontend.yaml @@ -33,6 +33,14 @@ spec: value: "3000" resources: {{- toYaml .Values.frontend.resources | nindent 12 }} + {{- with .Values.frontend.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.frontend.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} --- apiVersion: v1 kind: Service diff --git a/deploy/helm/multica/templates/postgres.yaml b/deploy/helm/multica/templates/postgres.yaml index bde822da9..0ff8204e6 100644 --- a/deploy/helm/multica/templates/postgres.yaml +++ b/deploy/helm/multica/templates/postgres.yaml @@ -77,6 +77,14 @@ spec: periodSeconds: 5 resources: {{- toYaml .Values.postgres.resources | nindent 12 }} + {{- with .Values.postgres.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.postgres.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} volumes: - name: data persistentVolumeClaim: diff --git a/deploy/helm/multica/values.yaml b/deploy/helm/multica/values.yaml index 795a00a60..c69be9311 100644 --- a/deploy/helm/multica/values.yaml +++ b/deploy/helm/multica/values.yaml @@ -68,6 +68,9 @@ postgres: limits: cpu: 1000m memory: 1Gi + # Standard Kubernetes scheduling constraints for the postgres Deployment. + affinity: {} + tolerations: [] # ----------------------------------------------------------------------------- # Backend (Go API + WS server) @@ -135,6 +138,9 @@ backend: limits: cpu: 1000m memory: 1Gi + # Standard Kubernetes scheduling constraints for the backend Deployment. + affinity: {} + tolerations: [] # ----------------------------------------------------------------------------- # Frontend (Next.js standalone) @@ -162,6 +168,9 @@ frontend: limits: cpu: 1000m memory: 1Gi + # Standard Kubernetes scheduling constraints for the frontend Deployment. + affinity: {} + tolerations: [] # ----------------------------------------------------------------------------- # Ingress