acs-engine icon indicating copy to clipboard operation
acs-engine copied to clipboard

Unable to access on-prem resources over Express Route

Open dcieslak19973 opened this issue 8 years ago • 5 comments

Is this a request for help?: Help

Is this an ISSUE or FEATURE REQUEST? (choose one): ISSUE


What version of acs-engine?: 0.13

Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm) Kubernetes 1.8.7

What happened: Containers running on the cluster via Pods are unable to access on-prem services (e.g. a database). The agent nodes ARE able to reach these on-prem services (e.g. they can route to the internal IPs over our Express Route properly). The kubernetes cluster was created with a "networkPolicy=none". Hitting external (e.g. Internet) IPs works fine.

What you expected to happen: Containers running on the cluster should be able to route just like the host can.

How to reproduce it (as minimally and precisely as possible): I deployed the tutum/curl container using:

kubectl run -it --image=tutum/curl client --restart=Never

And can route to things like http://www.google.com but not to http://some.on-prem.resource/

Anything else we need to know:

dcieslak19973 avatar Mar 21 '18 16:03 dcieslak19973

With little info about your setup I am wondering if you checked your nsg rules to see if the appropriate ports are opened for accessing the database services etc.

vpatelsj avatar Mar 24 '18 06:03 vpatelsj

Thanks. I should have mentioned that I set up an ANY/ANY rule on the affected NSG.

I’m not great with networking, but my gut feeling is that the Route Table may be the problem

My company does have an NDA in place with Microsoft and I could make arrangements for a Microsoft employee to screen share

dcieslak19973 avatar Mar 24 '18 15:03 dcieslak19973

@dcieslak19973 Please use networkpolicy as azure. This will give your PODs ip addresses from vnet address space, and pods should be able to reach on-prem.

sharmasushant avatar Mar 24 '18 18:03 sharmasushant

I appear to be unable to create a cluster with networkPolicy set to azure. I have opened ticket:

https://github.com/Azure/acs-engine/issues/2529

dcieslak19973 avatar Mar 26 '18 18:03 dcieslak19973

#2529 closes this.

dcieslak19973 avatar Mar 27 '18 15:03 dcieslak19973