PERF(zot): add HA with 2 replicas

- Increase replicas from 1 to 2 for high availability
- Add soft pod anti-affinity to distribute across nodes
This commit is contained in:
2026-01-08 17:46:44 +09:00
parent 381b7cda3f
commit c0e4bfeb66

View File

@@ -4,7 +4,7 @@
controllers: controllers:
zot: zot:
type: deployment type: deployment
replicas: 1 replicas: 2
strategy: RollingUpdate strategy: RollingUpdate
containers: containers:
zot: zot:
@@ -39,6 +39,15 @@ controllers:
limits: limits:
memory: 256Mi memory: 256Mi
pod: pod:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/name: zot
topologyKey: kubernetes.io/hostname
tolerations: tolerations:
- key: "node-role.kubernetes.io/master" - key: "node-role.kubernetes.io/master"
operator: "Exists" operator: "Exists"