GKE Autopilot private cluster - cant connect to cluster ip

Hello to anyone willing to help, new to kubernetes but had what I assume is a simple question:

Have a GKE Autopilot private cluster that serves internal compute engine VM via a pod then to a cloud sql instance. The problem is I have to connect to the pod’s IP address and everything works fine. But when I try to connect to the cluster IP, nothing. I cant even ping 10.105.3.109

It’s only an issue when I have to modify the pod thus changing its IP address resulting in having to change 3 connection strings to get it to work again. Being able to access the cluster IP would fix this.

Relevant screenshots below:

Can anyone help? Thanks in advance!

-russ

1 Like

So I ditched the non-working Cluster IP service and went with the Load Balancer as per the directions here:

https://cloud.google.com/kubernetes-engine/docs/how-to/internal-load-balancing#deploy

So far, everything is working fine!

Thanks,

-russ

1 Like

Just as an FYI, ClusterIPs are only routable within a GKE cluster.