FEAT(platform): enable HA with replica 2 and soft anti-affinity
- Add replicaCount: 2 to cert-manager components - Add soft pod anti-affinity for node distribution - Remove descheduler (moved to separate location)
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
# Install CRDs with Helm
|
# Install CRDs with Helm
|
||||||
installCRDs: true
|
installCRDs: true
|
||||||
|
|
||||||
replicaCount: 1
|
replicaCount: 2
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
@@ -14,7 +14,7 @@ resources:
|
|||||||
memory: 96Mi
|
memory: 96Mi
|
||||||
|
|
||||||
webhook:
|
webhook:
|
||||||
replicaCount: 1
|
replicaCount: 2
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 15m
|
cpu: 15m
|
||||||
@@ -23,7 +23,7 @@ webhook:
|
|||||||
memory: 96Mi
|
memory: 96Mi
|
||||||
|
|
||||||
cainjector:
|
cainjector:
|
||||||
replicaCount: 1
|
replicaCount: 2
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 15m
|
cpu: 15m
|
||||||
@@ -31,6 +31,39 @@ cainjector:
|
|||||||
limits:
|
limits:
|
||||||
memory: 96Mi
|
memory: 96Mi
|
||||||
|
|
||||||
|
# Affinity - Soft Anti-Affinity to spread pods across nodes
|
||||||
|
affinity:
|
||||||
|
podAntiAffinity:
|
||||||
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- weight: 100
|
||||||
|
podAffinityTerm:
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: cert-manager
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
|
|
||||||
|
webhook:
|
||||||
|
affinity:
|
||||||
|
podAntiAffinity:
|
||||||
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- weight: 100
|
||||||
|
podAffinityTerm:
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: cert-manager-webhook
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
|
|
||||||
|
cainjector:
|
||||||
|
affinity:
|
||||||
|
podAntiAffinity:
|
||||||
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- weight: 100
|
||||||
|
podAffinityTerm:
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: cert-manager-cainjector
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
|
|
||||||
# Prometheus metrics
|
# Prometheus metrics
|
||||||
prometheus:
|
prometheus:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
Reference in New Issue
Block a user