Changeset 0.32.0 (#206)

This commit is contained in:
2026-03-19 18:50:27 +00:00
parent 6668e546fe
commit b1266b0d7c
283 changed files with 2187 additions and 1055 deletions

View File

@@ -22,6 +22,20 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
# v0.32.0: Spread replicas across nodes for node-level HA.
# preferred (not required) — if fewer nodes than replicas, pods
# still schedule on the same node (degraded HA > no scheduling).
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/name: {{ .Chart.Name }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: backend
topologyKey: kubernetes.io/hostname
containers:
- name: backend
image: {{ include "switchboard.backend.image" . }}
@@ -45,18 +59,21 @@ spec:
- name: data
mountPath: /data
{{- end }}
# v0.32.0: Liveness — process alive (no dependency checks).
livenessProbe:
httpGet:
path: {{ .Values.basePath }}/api/v1/health
path: {{ .Values.basePath }}/healthz/live
port: http
initialDelaySeconds: 10
periodSeconds: 30
# v0.32.0: Readiness — PG reachable. Failure pulls pod from Service.
readinessProbe:
httpGet:
path: {{ .Values.basePath }}/api/v1/health
path: {{ .Values.basePath }}/healthz/ready
port: http
initialDelaySeconds: 5
periodSeconds: 10
failureThreshold: 3
{{- if .Values.persistence.enabled }}
volumes:
- name: data