Can I Connect Azure Kubernetes Nodes to My Local Network?

10/16/2019

I have a kubernetes service on azure and it has own virtual network.My local network is using pfsense for gateway and has a public ip.Can i define static route between azure and my local network for communication kubernetes nodes and my local machines?If yes how ?

I know i can use VPN gateway or LoadBalancer but i am wondering about just static routing or some solution like that.

-- akuscu
azure
cloud
kubernetes
networking
routing

2 Answers

10/16/2019

To connect to Azure Vnet you need to have a VPN (Point to Site) or Site to Site or Azure Express Route. if you want to use a connection to a pod directly you have to use port forward or an ingress controller.

-- Anass Kartit
Source: StackOverflow

10/17/2019

I found solution like that:

Bind an public ip to node interface. Allow only my premise's public ip fr inbound and outbound. Do the same on premise firewall. Create NAT rules on premise firewall.

-- akuscu
Source: StackOverflow