Use public IP of other virtual network

Jamie Neubert 1 Reputation point
2021-07-09T12:32:37.6+00:00

Hi.

I am using AKS and want to use a predefined virtual network in Azure. Is that possible?
The reason that I want to do it is I'm connecting to a host from one of the servers which only allows connections from a specific IP (allow-list).
Or is it possible to later use the predefined virtual network as the "master" of the other virtual network created dynamically by the cluster creation?

Another solution I've thought of is using a VPN client in AKS. Is that possible to do with Azure CNI and how would one do it?
I already have an OpenVPN server running on a different server, so if it was possible to connect to that for a specific request to a IP that would also be awesome.

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,311 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,999 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SaiKishor-MSFT 17,221 Reputation points
    2021-07-20T00:26:26.707+00:00

    @Jamie Neubert Thank you for reaching out to Microsoft Q&A. We apologize for the delay in response.

    I understand that you want to attach your AKS to a Load Balancer and point traffic to the AKS Cluster and remaining traffic to the old internal IP.

    Here is some documentation to setup AKS with Load Balancer-

    Public Load Balancer: https://learn.microsoft.com/en-us/azure/aks/load-balancer-standard
    Internal Load Balancer: https://learn.microsoft.com/en-us/azure/aks/internal-lb

    However, you cannot route traffic based on paths using a Load Balancer and may need an Application Gateway to that. Here is a document that explains how to integrate an application gateway with AKS- https://azure.microsoft.com/en-us/blog/application-gateway-ingress-controller-for-azure-kubernetes-service/

    Here is an similar setup i.e., Multiple Site Hosting on Azure Application Gateway integrated with Azure AKS that may help you.

    Hope this helps. Please let usknow if you require any further assistance regarding this and we will be happy to help. Thank you!

    Remember:

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

    Want a reminder to come back and check responses? Here is how to subscribe to a notification.

    0 comments No comments