I use RPC protocol app as a micro-service and an API Gateway in front of them as a proxy.
Now I want to use k8s to deploy micro-service, the API gateway is out of k8s cluster, RPC micro-service is deployed by k8s, there are three replicas RPC micro-service in my cluster.
My question is how could I directly access k8s's pod, because I must build a connection pool to hold these connections, for example, I have three RPC micro-service pod.
this is my architecture architecture image