anti affinity

This commit is contained in:
Philip Haupt
2025-10-10 01:23:09 +02:00
parent 441ba8d8a1
commit 7bb91d3103
2 changed files with 2 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ metadata:
namespace: cnpg-cluster-16
spec:
affinity:
topologyKey: topology.kubernetes.io/zone
topologyKey: kubernetes.io/hostname
bootstrap:
initdb: null
enablePDB: true

View File

@@ -247,7 +247,7 @@ cluster:
# -- Affinity/Anti-affinity rules for Pods.
# See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-AffinityConfiguration
affinity:
topologyKey: topology.kubernetes.io/zone
topologyKey: kubernetes.io/hostname
# -- The configuration for the CA and related certificates.
# See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-CertificatesConfiguration