apiVersion: pgd.k8s.enterprisedb.io/v1beta1 kind: PGDGroup metadata: name: region-a namespace: region-a spec: instances: 2 proxyInstances: 2 witnessInstances: 1 pgd: parentGroup: name: world create: true discovery: # need list the full discovery name for the group - host: region-a-group.region-a.svc.cluster.local - host: region-b-group.region-b.svc.cluster.local - host: region-c-group.region-c.svc.cluster.local cnp: storage: size: 1Gi connectivity: dns: # we need to configure the domain for the group so it could be resolved domain: region-a.svc.cluster.local additional: - domain: my.domain hostSuffix: -dc1 tls: mode: verify-ca clientCert: caCertSecret: client-ca-key-pair certManager: spec: issuerRef: name: client-ca-issuer kind: Issuer group: cert-manager.io serverCert: caCertSecret: server-ca-key-pair certManager: spec: issuerRef: name: server-ca-issuer kind: Issuer group: cert-manager.io --- apiVersion: pgd.k8s.enterprisedb.io/v1beta1 kind: PGDGroup metadata: name: region-b namespace: region-b spec: instances: 2 proxyInstances: 2 witnessInstances: 1 pgd: parentGroup: name: world discovery: # need list the full discovery name for the group - host: region-a-group.region-a.svc.cluster.local - host: region-b-group.region-b.svc.cluster.local - host: region-c-group.region-c.svc.cluster.local cnp: storage: size: 1Gi connectivity: dns: # we need to configure the domain for the group so it could be resolved domain: region-b.svc.cluster.local additional: - domain: my.domain hostSuffix: -dc1 tls: mode: verify-ca clientCert: caCertSecret: client-ca-key-pair certManager: spec: issuerRef: name: client-ca-issuer kind: Issuer group: cert-manager.io serverCert: caCertSecret: server-ca-key-pair certManager: spec: issuerRef: name: server-ca-issuer kind: Issuer group: cert-manager.io --- apiVersion: pgd.k8s.enterprisedb.io/v1beta1 kind: PGDGroup metadata: name: region-c namespace: region-c spec: instances: 0 proxyInstances: 0 witnessInstances: 1 pgd: parentGroup: name: world discovery: # need list the full discovery name for the group - host: region-a-group.region-a.svc.cluster.local - host: region-b-group.region-b.svc.cluster.local - host: region-c-group.region-c.svc.cluster.local cnp: storage: size: 1Gi connectivity: dns: # we need to configure the domain for the group so it could be resolved domain: region-c.svc.cluster.local additional: - domain: my.domain hostSuffix: -dc1 tls: mode: verify-ca clientCert: caCertSecret: client-ca-key-pair certManager: spec: issuerRef: name: client-ca-issuer kind: Issuer group: cert-manager.io serverCert: caCertSecret: server-ca-key-pair certManager: spec: issuerRef: name: server-ca-issuer kind: Issuer group: cert-manager.io