unable to get output from nginx-ingress external ip

Prem Jha 6 Reputation points
2022-12-25T13:23:10.497+00:00

Hi,

i am trying to install ingress-nginx into the AKS cluster using the kubernetes helm repository (https://kubernetes.github.io/ingress-nginx) and it gets successfully deployed.

273898-image.png

and i also got the external ip of ingress but whenever i am trying to hit the external ip over the internet it is giving me gateway timeout error. even i have also checked my NSG rules.

273859-image.png

what i have tried :

i thought the problem is in the cluster bt when i installed the nginx from the NGINX official helm repository (https://helm.nginx.com/stable) i got the external ip of nginx.

and when hit that external ip i got the outpit (404 nginx ) which is fine.

but the NGINX official helm repository doesnt comes with the admission controllers.

can you please tell me how to resolve this i want to use kubernetes nginx helm repository(https://kubernetes.github.io/ingress-nginx) but it seems not to be working

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,459 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Amjad Aljunaidi 6 Reputation points Microsoft Employee
    2022-12-27T09:09:44.54+00:00

    actually it is know issue with http/s and TCP
    so you should add this annotation to make sure it is configure correctly
    "service.beta.kubernetes.io/azure-load-balancer-health-probe-request-path: /healthz"

    already explained here https://github.com/Azure/AKS/releases/tag/2022-09-11

    "
    Behavioral Changes
    For Kubernetes 1.24+ the services of type LoadBalancer with appProtocol HTTP/HTTPS will switch to use HTTP/HTTPS as health probe protocol (while before v1.24.0 it uses TCP). And / will be used as the default health probe request path. If your service doesn’t respond 200 for /, please ensure you're setting the service annotation service.beta.kubernetes.io/port_{port}_health-probe_request-path or service.beta.kubernetes.io/azure-load-balancer-health-probe-request-path (applies to all ports) with the correct request path to avoid service breakage.
    "

    1 person found this answer 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.