Is there any option to control outgoing traffic at the Azure API gateway

Shreyas Arani 271 Reputation points
2021-06-21T05:13:49.267+00:00

There are some pods in my AKS cluster which need to communicate outside the AKS cluster. So is there a way to control outgoing traffic from my pod at the Azure API gateway?

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,457 questions
{count} votes

Accepted answer
  1. Shreyas Arani 271 Reputation points
    2021-06-24T04:08:45.487+00:00

    Hi @SRIJIT-BOSE-MSFT actually we are using nginx ingress controller as a API gateway. So all the requests from internet will first hit the ingress controller and ingress rules have been defined to redirect to the particular backend service based on the hostname. So my concern is controlling egress traffic from pods. I would like to allow ingress to my ingress controller pod. And would like to block egress on some pods. So I thought of using network policies https://learn.microsoft.com/en-us/azure/aks/use-network-policies . I am not sure whether azure firewall serves my purpose. If it does will look into it.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.