Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ metadata:
spec:
affinity:
enablePodAntiAffinity: true
topologyKey: topology.kubernetes.io/zone
podAntiAffinityType: {{ .Values.podAntiAffinityType | quote }}
topologyKey: {{ .Values.topologyKey | quote }}
bootstrap:
initdb:
database: {{ .Values.database }}
Expand Down
6 changes: 6 additions & 0 deletions sources/eai-infra/airm-cnpg/0.1.0/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ database: "airm"
username: "airm_user"
image: "ghcr.io/cloudnative-pg/postgresql:17.2"
instances: 1
# Spread instances across distinct nodes. "preferred" schedules them apart when
# nodes allow it and falls back to co-scheduling otherwise, so a cluster with
# fewer nodes than instances still comes up. Set "required" to make the spread
# binding, which leaves surplus instances Pending until nodes are added.
podAntiAffinityType: "preferred"
topologyKey: "kubernetes.io/hostname"
userSecretName: "airm-cnpg-user"
superuserSecretName: "airm-cnpg-superuser"
sharedBuffers: "256MB"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ metadata:
spec:
affinity:
enablePodAntiAffinity: true
topologyKey: topology.kubernetes.io/zone
podAntiAffinityType: {{ .Values.podAntiAffinityType | quote }}
topologyKey: {{ .Values.topologyKey | quote }}
bootstrap:
initdb:
database: {{ .Values.database }}
Expand Down
6 changes: 6 additions & 0 deletions sources/eai-infra/aiwb-cnpg/0.1.0/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ database: "aiwb"
username: "aiwb_user"
image: "ghcr.io/cloudnative-pg/postgresql:17.2"
instances: 3
# Spread instances across distinct nodes. "preferred" schedules them apart when
# nodes allow it and falls back to co-scheduling otherwise, so a cluster with
# fewer nodes than instances still comes up. Set "required" to make the spread
# binding, which leaves surplus instances Pending until nodes are added.
podAntiAffinityType: "preferred"
topologyKey: "kubernetes.io/hostname"
userSecretName: "aiwb-cnpg-user"
superuserSecretName: "aiwb-cnpg-superuser"
sharedBuffers: "256MB"
Expand Down
3 changes: 2 additions & 1 deletion sources/keycloak-config/templates/keycloak-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ metadata:
spec:
affinity:
enablePodAntiAffinity: true
topologyKey: topology.kubernetes.io/zone
podAntiAffinityType: {{ .Values.cnpg.podAntiAffinityType | quote }}
topologyKey: {{ .Values.cnpg.topologyKey | quote }}
bootstrap:
initdb:
database: keycloak
Expand Down
6 changes: 6 additions & 0 deletions sources/keycloak-config/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ cnpg:
# so node maintenance stalls until someone disables it by hand.
# Set true or false to override.
enablePDB: null
# Spread instances across distinct nodes. "preferred" schedules them apart
# when nodes allow it and falls back to co-scheduling otherwise, so a cluster
# with fewer nodes than instances still comes up. Set "required" to make the
# spread binding, which leaves surplus instances Pending until nodes exist.
podAntiAffinityType: "preferred"
topologyKey: "kubernetes.io/hostname"
Loading