Can't connect to AKS ingress from internet

Andrew Tollett 21 Reputation points
2022-07-06T15:39:52.377+00:00

I have an ingress-nginx ingress for my Kubernetes service.
If I curl the external IP from inside the cluster, like from a pod such as this kubectl run my-shell --rm -i --tty --image ubuntu -- bash, I get the result I expect.
If I curl from the internet, It times out. What could be the problem?

Resources online have pointed me to check my firewall and NSG settings. I see one of my NSGs has an explicit exception for the IP chosen by the ingress-nginx ingress, which seems to update automatically. Is there a way to see if there are other firewalls and network security groups between my AKS cluster and the internet?

This problem began after updating from kubernetes 1.19 to 1.22

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,267 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Andrew Tollett 21 Reputation points
    2022-07-06T17:45:42.787+00:00

    I deleted the kubernetes cluster and recreated it. this resolved the issue but was obviously very destructive. If you have the same issue I wish you luck.

    2 people found this answer helpful.
    0 comments No comments

  2. Owain Osborne-Walsh 0 Reputation points Microsoft Employee
    2023-01-30T19:38:04.5933333+00:00

    Just run into the same problem without upgrading. Identical to this in regards to external IP now unavailable despite no cluster changes but can still be curled inside the cluster.

    0 comments No comments

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.