apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: # This pulls the Operator installation directly from the web - https://raw.githubusercontent.com/cloudnative-pg/cloudnative-pg/main/releases/cnpg-1.22.1.yaml - postgres-cluster.yaml # This patch ensures the Postgres Cluster pods go to dbworkers # patches: # - target: # kind: Cluster # group: postgresql.cnpg.io # patch: |- # apiVersion: postgresql.cnpg.io/v1 # kind: Cluster # metadata: # name: postgres-ha # spec: # nodeSelector: # node-role.kubernetes.io/dbworker: "true" # - op: add # path: /spec/nodeSelector # value: # node-role.kubernetes.io/dbworker: "true"