I am building a Kubernetes Cluster on Azure (AKS). I have deployed it into a custom VNet using this document. By default, the VNet that gets created when AKS is provisioned is 10.0.0.0/8. All of our infrastructures are in 10.27.X.X space hence the need for the custom VNet.
As per the document the Custom VNet is created in a separate Resource Group, in our case Azure.Prod. In the same group, we have established the Virtual Network Gateway for the VPN back to our Data Centre.
Here is the details (obfuscated) of our config:
One of the containers needs to make a SQL Connection back to the Data Centre but it is failing. I am able to ping 10.150.1.4 from a machine in the data centre so have proved connectivity from DC to Azure.
I have added the following routes in the route table that was created by AKS, followed this article.
On the machine in the Data Centre, I have created the following route
Any help appreciated!
Right, I finally got to the bottom of this, looks like the routes back to the data centre and also to the pods need to be replicated on the GatewaySubnet as well.