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
678 stars 422 forks source link

AGIC adds pod to the backed pool even if it is not in ready state #1623

Open yarashagarwal opened 4 months ago

yarashagarwal commented 4 months ago

Describe the bug A clear and concise description of what the bug is. If a pod is in running state but is not yet "ready" because of the container is still bringing itself up, AGIC still updates the pod IP address to the backend pool of the App Gateway

To Reproduce Steps to reproduce the behavior:

  1. Create a Pod with a readiness probe set to 1 minute
  2. As soon as the pod is running state, AGIC updates the backendpool
  3. Observe the traffic flow into the new pod which is still not ready Expected behaviour should be that AGIC does not update the backend pools on the app gateway till the pods are in ready state

Ingress Controller details

mtrin commented 4 months ago

I'm not from Azure or MS but I had to figure this out. Basically following this doc should sort your issue https://azure.github.io/application-gateway-kubernetes-ingress/how-tos/minimize-downtime-during-deployments/

you need to give agic a bit of time to update