Azure k8s pods to cluster external communication via internal IPs

9/16/2017

I am migrating from GCP to Azure. My use case is simple: I have a k8s cluster running some web crawlers which needs to talk to Elastic and Cassandra clusters (not in the k8s cluster) using internal IPs. All of these components can be in the same Azure Region (e.g: East US). I understand from this discussion that VNET peering is the way to go.

This solution did not work for me. I am still unable to reach my Cass/ES cluster from the pods. I believe this solution is outdated, is there some other approach to accomplish this, that I am missing ?

-- Segmented
azure
kubernetes

1 Answer

9/19/2017

We can use Azure route table to achieve that, then we can ping pod IP address out of your k8s Vnet.

I have answered your another question here, please check it.

If you would like further assistance, please let me know:)

-- Jason Ye
Source: StackOverflow