Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
feat(helm): add per-component affinity and tolerations (#5490)
Christian Rodriguez7b89c5104cd4
diff --git a/deploy/helm/multica/templates/backend.yaml b/deploy/helm/multica/templates/backend.yamlindex 44d5c79da7..19c44051da 100644--- a/deploy/helm/multica/templates/backend.yaml+++ b/deploy/helm/multica/templates/backend.yaml@@ -104,6 +104,14 @@ spec:periodSeconds: 30resources:{{- 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: uploadsdiff --git a/deploy/helm/multica/templates/frontend.yaml b/deploy/helm/multica/templates/frontend.yamlindex 0c715168f9..f756e4e712 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: v1kind: Servicediff --git a/deploy/helm/multica/templates/postgres.yaml b/deploy/helm/multica/templates/postgres.yamlindex bde822da9c..0ff8204e6e 100644--- a/deploy/helm/multica/templates/postgres.yaml+++ b/deploy/helm/multica/templates/postgres.yaml@@ -77,6 +77,14 @@ spec:periodSeconds: 5resources:{{- 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: datapersistentVolumeClaim:diff --git a/deploy/helm/multica/values.yaml b/deploy/helm/multica/values.yamlindex 795a00a607..c69be93111 100644--- a/deploy/helm/multica/values.yaml+++ b/deploy/helm/multica/values.yaml@@ -68,6 +68,9 @@ postgres:limits:cpu: 1000mmemory: 1Gi+ # Standard Kubernetes scheduling constraints for the postgres Deployment.+ affinity: {}+ tolerations: []# -----------------------------------------------------------------------------# Backend (Go API + WS server)@@ -135,6 +138,9 @@ backend:limits:cpu: 1000mmemory: 1Gi+ # Standard Kubernetes scheduling constraints for the backend Deployment.+ affinity: {}+ tolerations: []# -----------------------------------------------------------------------------# Frontend (Next.js standalone)@@ -162,6 +168,9 @@ frontend:limits:cpu: 1000mmemory: 1Gi+ # Standard Kubernetes scheduling constraints for the frontend Deployment.+ affinity: {}+ tolerations: []# -----------------------------------------------------------------------------# Ingress