[英]Connect to Crunchy Operator's read replica
How do I connect to a read replica of a Crunchy Operator postgres cluster, when running this cluster in HA mode?在 HA 模式下运行此集群时,如何连接到 Crunchy Operator postgres 集群的只读副本?
I have two instances
configured and two pgBouncer
configured.我配置了两个
instances
和两个pgBouncer
。
k get svc -o wide
looks like this 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>
Like you can see, there's no -replica svc I can connect to.如您所见,没有我可以连接的 -replica svc。
I tried to create one Vm in the same su.net and im able to access the read replica with same user name password from the VM.我试图在同一个 su.net 中创建一个 Vm,我无法从 VM 访问具有相同用户名密码的只读副本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.