0

在 HA 模式下运行该集群时,如何连接到 Crunchy Operator postgres 集群的只读副本?

我有两个instances配置和两个pgBouncer配置。

k get svc -o wide看起来像这样

NAME                     TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)    AGE   SELECTOR
analytics-ha             ClusterIP   172.16.16.194   <none>        5432/TCP   63d   <none>
analytics-ha-config      ClusterIP   None            <none>        <none>     63d   <none>
analytics-pgbouncer      ClusterIP   172.16.24.181   <none>        5432/TCP   63d   postgres-operator.crunchydata.com/cluster=analytics,postgres-operator.crunchydata.com/role=pgbouncer
analytics-pods           ClusterIP   None            <none>        <none>     63d   postgres-operator.crunchydata.com/cluster=analytics
analytics-primary        ClusterIP   None            <none>        5432/TCP   63d   <none>

如您所见,我无法连接到 -replica svc。

4

0 回答 0