Listeners are getting deleted

Sujith Julakanti 25 Reputation points
2023-06-21T11:39:16.4033333+00:00

I am configuring ingress in Application Gateway and I need to forward requests from different ports to different services. So, I am creating different listeners each for a port. But after some time, every listener I created except one are getting deleted. I am unable to understand why this is happening.

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.
{count} votes

Answer accepted by question author
  1. Goncalo Correia 351 Reputation points Microsoft Employee
    2023-06-22T10:49:05.1666667+00:00

    Hi @Sujith Julakanti

    Thanks for your question,

    If you configured AGIC, the Application Gateway is now managed by the AKS cluster and you should not create listeners manually in the Application Gateway:

    "With default settings, AGIC assumes 100% ownership of the Application Gateway it's pointed to. AGIC overwrites all of App Gateway's configuration. If we were to manually create a listener for prod.contoso.com (on Application Gateway), without defining it in the Kubernetes Ingress, AGIC deletes the prod.contoso.com config within seconds."

    https://learn.microsoft.com/en-us/azure/application-gateway/ingress-controller-install-existing#example-scenario

    All the listeners and configurations are created by the AKS Resource Provider, according to the ingress you create on the AKS cluster. You can further configure the App Gateway via annotations on the Ingress object, those will also be applied by the AKS RP.

    The manual changes done in the app gateway will be undone by the AKS RP shortly after.


0 additional answers

Sort by: Most helpful

Your answer

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