Skip to content

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.yaml
index 44d5c79da7..19c44051da 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 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: v1
kind: Service
diff --git a/deploy/helm/multica/templates/postgres.yaml b/deploy/helm/multica/templates/postgres.yaml
index bde822da9c..0ff8204e6e 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 795a00a607..c69be93111 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