FEAT(security): enable HA with replica 2 and soft anti-affinity

- Add replicaCount: 2 to authelia, external-secrets, falco
- Add soft pod anti-affinity for node distribution
- Configure affinity for all security components
This commit is contained in:
2026-01-08 13:07:56 +09:00
parent 56c7c0d29d
commit cbf00275e8
3 changed files with 63 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ ingress:
# Pod configuration
pod:
replicas: 1
replicas: 2
resources:
requests:
cpu: 15m
@@ -168,3 +168,15 @@ secret:
existingSecret: authelia-secrets
# No persistence needed - using PostgreSQL
# Affinity - Soft Anti-Affinity to spread pods across nodes
pod:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/name: authelia
topologyKey: kubernetes.io/hostname