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:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user