AKS - Nginx Ingress Controller broke after upgrading to version 1.24.x
After performing an upgrade to Kubernetes version 1.24.x on Azure Kubernetes Service the Nginx-ingress controller stopped working.
The issue was fixed after setting the Azure load balancer's health probe to /healthz by following the below thread.
https://learn.microsoft.com/en-us/answers/questions/1008699/aks-124-ingress-not-exposed.html
The change can be done either by going to the probe configuration of the load balancer or by updating the Nginx ingress controller annotations
Command used to make the change (using helm)
helm upgrade --install ingress-nginx-dev ingress-nginx/ingress-nginx \
--namespace ingress-dev \
--set controller.ingressClassResource.name=ingress-dev \
--set controller.replicaCount=1 \
--set controller.nodeSelector.environment=dev \
--set controller.nodeSelector."kubernetes\.io/os"=linux \
--set defaultBackend.nodeSelector."kubernetes\.io/os"=linux \
--set controller.admissionWebhooks.patch.nodeSelector."kubernetes\.io/os"=linux \
--set controller.service.type=LoadBalancer \
--set controller.service.loadBalancerIP="<loadbalancerIP" \
--set controller.service.annotations."service\.kubernetes\.io/azure-dns-label-name"="ratings-api-dev" \
--set controller.service.annotations."service\.beta\.kubernetes\.io/azure-load-balancer-health-probe-request-path"="/healthz" \
--set controller.resources.requests.cpu=200m \
--set controller.resources.requests.memory=256Mi \
--set controller.config.use-http2="true"
Comments
Post a Comment