FEAT(storage): enable HA with replica 2 and soft anti-affinity
- Add replicaCount: 2 to cnpg, pgweb, velero-ui, minio-console - Add soft pod anti-affinity for node distribution - Configure affinity for all storage components
This commit is contained in:
@@ -8,7 +8,7 @@ image:
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
# Replica count for operator
|
||||
replicaCount: 1
|
||||
replicaCount: 2
|
||||
|
||||
# Resource requests for operator
|
||||
resources:
|
||||
@@ -67,8 +67,16 @@ nodeSelector: {}
|
||||
# Tolerations
|
||||
tolerations: []
|
||||
|
||||
# Affinity
|
||||
affinity: {}
|
||||
# Affinity - Soft Anti-Affinity to spread pods across nodes
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
preferredDuringSchedulingIgnoredDuringExecution:
|
||||
- weight: 100
|
||||
podAffinityTerm:
|
||||
labelSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: cloudnative-pg
|
||||
topologyKey: kubernetes.io/hostname
|
||||
|
||||
# Security context
|
||||
securityContext:
|
||||
|
||||
Reference in New Issue
Block a user