Traffic to AKS ingress is blocked when using domain name

Dainius Figoras 0 Reputation points
2024-09-01T07:50:11.0066667+00:00

Hi,

few weeks ago I created new kubernetes cluster, installed ingress-nginx and some test application. Plan was to test some basic setup and then install letsencrypt for https.

I tried 2 setups for ingress, with host name and without. Both works fine if I do port-forward to service or ingress controller.

it also works if I don't use host in ingress definition and use IP address to send request. I also can add host header to http request and it works just fine.

But if I setup ingress with host it seems like ingress controller is not getting traffic at all, when I try from outside cluster. I also tried with https seems like same result, all requests are just timing out.

There is no firewall and I couldn't find any network config that would block by domain. I am not even sure if it's something inside kubernetes or is it loadbalancer that does this.

I never experienced this before with any other setup, but last time I did it, it was few years ago, so maybe something in new version?

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,141 questions
{count} votes

1 answer

Sort by: Most helpful
  1. akinbade abiola 18,130 Reputation points
    2024-09-02T04:02:12.94+00:00

    May be a dns issue:

    use dig or nslookup to verify that your domain name resolves to the correct IP address.

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola


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.