Skip to content

Commit

Permalink
Revert "Remove affinity customisations as we run a single replica of …
Browse files Browse the repository at this point in the history
…each component sciety/sciety#3248"

This reverts commit d6681f7.
  • Loading branch information
giorgiosironi committed May 17, 2024
1 parent d6681f7 commit 473ad88
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions manifests/percona-postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ spec:
instances:
- name: instance1
replicas: 1

affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
podAffinityTerm:
labelSelector:
matchLabels:
postgres-operator.crunchydata.com/data: postgres
topologyKey: kubernetes.io/hostname

dataVolumeClaimSpec:
accessModes:
- ReadWriteOnce
Expand All @@ -23,13 +34,32 @@ spec:
pgBouncer:
replicas: 1
image: percona/percona-postgresql-operator:2.3.1-ppg12-pgbouncer
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
podAffinityTerm:
labelSelector:
matchLabels:
postgres-operator.crunchydata.com/role: pgbouncer
topologyKey: kubernetes.io/hostname
config:
global:
client_tls_sslmode: disable

backups:
pgbackrest:
image: percona/percona-postgresql-operator:2.3.1-ppg12-pgbackrest
repoHost:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
podAffinityTerm:
labelSelector:
matchLabels:
postgres-operator.crunchydata.com/data: pgbackrest
topologyKey: kubernetes.io/hostname
manual:
repoName: repo1
options:
Expand Down

0 comments on commit 473ad88

Please sign in to comment.