Hi, I’m testing Couchbase Cluster in Kubernetes
Couchbase Cluster has 2 nodes with rebalancing…
and I set k8s DNS each nodes by REST API renaming Nodes for auto healing
But the problem is
when I try to use client python SDK through Loadbalancer Service from outside of k8s,
python SDK object “Cluster” has k8s DNS name.
So I want to try to get data from bucket, but SDK can’t not know real ip address and Connection failed.
I know temporary solution ( add dns address in hosts file )
But I think this is not good solution
for example, If a pod died, I need to change hosts file again for new pod address.
Or developing an application for getting IP address by dns… but need time and work
are there some good opinions in this situation?
for example, SDK returns real ip address (not k8s DNS )