FEAT(applications): enable HA with replica 2 and soft anti-affinity
- Add replicaCount: 2 to docusaurus, headlamp, homer, mas, umami - Add soft pod anti-affinity for node distribution - Enable high availability across multiple nodes
This commit is contained in:
@@ -12,6 +12,7 @@ serviceAccount:
|
||||
|
||||
controllers:
|
||||
main:
|
||||
replicaCount: 2
|
||||
strategy: RollingUpdate
|
||||
rollingUpdate:
|
||||
unavailable: 0
|
||||
@@ -76,6 +77,16 @@ controllers:
|
||||
port: 8000
|
||||
initialDelaySeconds: 0
|
||||
periodSeconds: 5
|
||||
# Affinity - Soft Anti-Affinity to spread pods across nodes
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
preferredDuringSchedulingIgnoredDuringExecution:
|
||||
- weight: 100
|
||||
podAffinityTerm:
|
||||
labelSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: mas
|
||||
topologyKey: kubernetes.io/hostname
|
||||
|
||||
service:
|
||||
main:
|
||||
|
||||
Reference in New Issue
Block a user