diff --git a/apps/ombi-postgresql/cluster/cluster.yaml b/apps/ombi-postgresql/cluster/cluster.yaml index b963025..2569ff3 100644 --- a/apps/ombi-postgresql/cluster/cluster.yaml +++ b/apps/ombi-postgresql/cluster/cluster.yaml @@ -6,6 +6,28 @@ metadata: spec: instances: 1 enableSuperuserAccess: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/hostname + operator: In + values: + - odroid-h3-00 + - odroid-h3-01 + - odroid-h3-02 + - odroid-h3-03 + - odroid-h3-04 + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + preference: + matchExpressions: + - key: kubernetes.io/hostname + operator: In + values: + - odroid-h3-00 + - odroid-h3-03 imageName: ghcr.io/cloudnative-pg/postgresql:17.11-standard-trixie bootstrap: initdb: