Skip to content

Commit

Permalink
Remove affinity customisations as we run a single replica of each com…
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Haarhoff committed May 17, 2024
1 parent d8d7a8b commit d6681f7
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions manifests/percona-postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ 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 @@ -34,32 +23,13 @@ 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 d6681f7

Please sign in to comment.