AKS icon indicating copy to clipboard operation
AKS copied to clipboard

Is there a way to change the default LoadBalancer for Services from "Internet" ingress?

Open davidcyr opened this issue 8 years ago • 2 comments

Each time I kubectl create -f a deployment manifest with a LoadBalancer service in AKS, a new IP address is added to the 'kubernetes' Load Balancer in the synthetic Resource Group, and new NSG entries are made allowing source of "internet" to that port/destination [IP] in the aks-agentpool-xxxx-nsg.

Is there a way to change this behavior to something else (say, a CIDR block or a logical tag like VirtualNetwork) if you are standing up services for within-enterprise use, vs. making publicly available APIs?

How are other people securing access to their services in a reliable repeatable way? Does everybody just go in after a deployment and adjust this rule? Or is there a feature I am missing?

Thanks in advance.

davidcyr avatar Apr 09 '18 21:04 davidcyr

Please see https://github.com/Azure/AKS/issues/98

This looks like an acceptable solution.

For a documentation view of the same, please see: https://docs.microsoft.com/en-us/azure/aks/internal-lb

Note that in this the onus is really on the Deployment manifests of each individual hosted app.

davidcyr avatar Apr 10 '18 14:04 davidcyr

Please see comment above - this is resolvable using the approach covered in https://github.com/Azure/AKS/issues/98

davidcyr avatar Apr 10 '18 15:04 davidcyr