Azure / application-gateway-kubernetes-ingress

This is an ingress controller that can be run on Azure Kubernetes Service (AKS) to allow an Azure Application Gateway to act as the ingress for an AKS cluster.
https://azure.github.io/application-gateway-kubernetes-ingress
MIT License
667 stars 413 forks source link

Public IP HTTPS fails when creating private IP HTTPS ingress #1580

Closed sprayzcs closed 1 month ago

sprayzcs commented 7 months ago

Describe the bug When creating a private ingress resource (annotation appgw.ingress.kubernetes.io/use-private-ip: "true"), all public https listeners fail with the error ERR_CONNECTION_RESET (from edge)

To Reproduce

Result: The public https page returns the stated error while the private https page functions normally.
When turning off https on the public page, the public page loads normally.
When turning off https on the pivate page and turning on https on the public page, the public page works again with https.

I am using a custom CA to generate my TLS certificates, if that helps..

Ingress Controller details

akshaysngupta commented 7 months ago

can you check what frontend all public ingresses are using on AppGateway ?

sprayzcs commented 7 months ago

can you check what frontend all public ingresses are using on AppGateway ?

Screenshot 2023-11-14 094359

There are two public and two private ingress resources. the first and third are my public ingresses, and the second and fourth are my private ingresses.

The public ingresses are using the public frontend ip.

Edit: I also noticed that shortly after the creation of the private ingress, both (public and private) ingresses function with https. After a short amount of time (~ 30 seconds), the public ingress does not work with https anymore.

akshaysngupta commented 7 months ago

@sprayzcs From the screenshot, is it right to conclude that AppGW config is generated as expected by AGIC but you see connectivity issue with AppGW ? If so, can you please create a support ticket ?