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:
@@ -7,7 +7,7 @@ ingress:
|
|||||||
|
|
||||||
# Pod configuration
|
# Pod configuration
|
||||||
pod:
|
pod:
|
||||||
replicas: 1
|
replicas: 2
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 15m
|
cpu: 15m
|
||||||
@@ -168,3 +168,15 @@ secret:
|
|||||||
existingSecret: authelia-secrets
|
existingSecret: authelia-secrets
|
||||||
|
|
||||||
# No persistence needed - using PostgreSQL
|
# 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
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
# External Secrets Operator Helm Values
|
# External Secrets Operator Helm Values
|
||||||
# Chart: https://github.com/external-secrets/external-secrets
|
# Chart: https://github.com/external-secrets/external-secrets
|
||||||
|
|
||||||
|
# Replica count
|
||||||
|
replicaCount: 2
|
||||||
|
|
||||||
# 리소스 제한
|
# 리소스 제한
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
@@ -12,6 +15,7 @@ resources:
|
|||||||
|
|
||||||
# Webhook 설정
|
# Webhook 설정
|
||||||
webhook:
|
webhook:
|
||||||
|
replicaCount: 2
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 2m # Reduced from 10m based on actual usage (1m)
|
cpu: 2m # Reduced from 10m based on actual usage (1m)
|
||||||
@@ -22,6 +26,7 @@ webhook:
|
|||||||
|
|
||||||
# CertController 설정
|
# CertController 설정
|
||||||
certController:
|
certController:
|
||||||
|
replicaCount: 2
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 2m # Reduced from 10m based on actual usage (1m)
|
cpu: 2m # Reduced from 10m based on actual usage (1m)
|
||||||
@@ -39,3 +44,36 @@ logLevel: info
|
|||||||
# CRD 자동 설치 비활성화 (annotation 크기 제한 문제 회피)
|
# CRD 자동 설치 비활성화 (annotation 크기 제한 문제 회피)
|
||||||
# CRD는 이미 설치되어 있으며, 업그레이드 시 수동으로 적용 필요
|
# CRD는 이미 설치되어 있으며, 업그레이드 시 수동으로 적용 필요
|
||||||
installCRDs: false
|
installCRDs: false
|
||||||
|
|
||||||
|
# Affinity - Soft Anti-Affinity to spread pods across nodes
|
||||||
|
affinity:
|
||||||
|
podAntiAffinity:
|
||||||
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- weight: 100
|
||||||
|
podAffinityTerm:
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: external-secrets
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
|
|
||||||
|
webhook:
|
||||||
|
affinity:
|
||||||
|
podAntiAffinity:
|
||||||
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- weight: 100
|
||||||
|
podAffinityTerm:
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: external-secrets-webhook
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
|
|
||||||
|
certController:
|
||||||
|
affinity:
|
||||||
|
podAntiAffinity:
|
||||||
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- weight: 100
|
||||||
|
podAffinityTerm:
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: external-secrets-cert-controller
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ grafanaDashboard:
|
|||||||
falcosidekick:
|
falcosidekick:
|
||||||
enabled: true
|
enabled: true
|
||||||
fullfqdn: false
|
fullfqdn: false
|
||||||
replicaCount: 1
|
replicaCount: 2
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
@@ -154,6 +154,17 @@ falcosidekick:
|
|||||||
webui:
|
webui:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
|
# Affinity - Soft Anti-Affinity to spread pods across nodes
|
||||||
|
affinity:
|
||||||
|
podAntiAffinity:
|
||||||
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- weight: 100
|
||||||
|
podAffinityTerm:
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: falcosidekick
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
|
|
||||||
# RBAC
|
# RBAC
|
||||||
rbac:
|
rbac:
|
||||||
create: true
|
create: true
|
||||||
|
|||||||
Reference in New Issue
Block a user