AKS icon indicating copy to clipboard operation
AKS copied to clipboard

AKS with Advance Networking - restricting access to pods in cluster A from cluster B

Open c-mccutcheon opened this issue 8 years ago • 5 comments

What happened: Using two AKS environments (in two different subnets) - one public facing, one private inside a smaller subnet. I would like to be able to restrict traffic to the pods in AKS-A to only allow requests inbound to come from AKS-B - I assumed I would be able to do this with the NSG we created to cover the subnet range for the pods in AKS-A, but only allowing internet access and then the range of AKS-B killed the posd for dashboard and service proxy inside AKS-A.

What you expected to happen: I would expect to be able to restrict traffic to the pod subnet in one AKS cluster via NSG rules.

How to reproduce it (as minimally and precisely as possible): Create AKS with Advanced networking inside a subnet, add an NSG for the subnet, add rules to restrict access from another subnet only.

Anything else we need to know?: Using latest GA AKS.

Environment: Latest GA AKS, West Europe.

Thank you!

c-mccutcheon avatar Aug 10 '18 14:08 c-mccutcheon

Hi @omgsarge,

Thank you for the feedback.

When you added the NSG rule, the pods in AKS-A were "killed" and you lost access to the dashboard and a service; is that correct?

Are both subnets in the same VNET?

jskulavik avatar Aug 10 '18 14:08 jskulavik

@jskulavik Hi!

Yes that is correct, both AKS clusters are in the same VNET, but deployed into different subnets. We wish only AKS-B to be able to talk to pods (services, really) in AKS-A, but just struggling to see what NSG rules we would need to allow/wrap around the subnet that the pods go into for AKS-A in order to let management & other functions to continue working.

c-mccutcheon avatar Aug 10 '18 15:08 c-mccutcheon

Okay, thank you. I understand now. Let me see if I can track down the proper NSG configuration for your desired state.

jskulavik avatar Aug 10 '18 15:08 jskulavik

@jskulavik appreciated!

c-mccutcheon avatar Aug 10 '18 20:08 c-mccutcheon

Hi @omgsarge,

I've determined that this is not a feature we currently support. If you would like to see this type of functionality supported in AKS, please consider adding an Azure feedback item: AKS Feedback Forum

jskulavik avatar Aug 11 '18 03:08 jskulavik