FEAT(web-apps): enable HA with replica 2 and soft anti-affinity
- Add replicaCount: 2 to all web applications - Add soft pod anti-affinity for node distribution - Update chart template to handle affinity correctly - Configure affinity for todo, portfolio, jovies, jotion, joossam, joossam-dev, jaejadle, jaejadle-dev
This commit is contained in:
@@ -11,7 +11,7 @@ image:
|
||||
imagePullSecrets:
|
||||
- name: ghcr-secret
|
||||
|
||||
replicaCount: 1
|
||||
replicaCount: 2
|
||||
containerPort: 3000
|
||||
|
||||
service:
|
||||
@@ -100,3 +100,11 @@ externalSecret:
|
||||
remoteRef:
|
||||
key: jaejadle
|
||||
property: CODE
|
||||
|
||||
# Affinity - Soft Anti-Affinity to spread pods across nodes
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
preferredDuringSchedulingIgnoredDuringExecution:
|
||||
- weight: 100
|
||||
podAffinityTerm:
|
||||
topologyKey: kubernetes.io/hostname
|
||||
|
||||
Reference in New Issue
Block a user