feat(k8s): enforce minimum 2 replicas for all services except email-worker

This commit is contained in:
ZhenYi 2026-04-15 23:08:25 +08:00
parent e7cf0c544f
commit b6022e824d
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
spec:
replicas: 1
replicas: {{ .Values.operator.replicaCount | default 2 }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "gitdata.fullname" . }}-operator

View File

@ -256,7 +256,7 @@ static:
# =============================================================================
gitserver:
enabled: true
replicaCount: 1
replicaCount: 2
image:
repository: gitserver
@ -405,6 +405,7 @@ migrate:
# =============================================================================
operator:
enabled: false
replicaCount: 2
image:
repository: operator