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