Azure Kubernetes Service - NGINX Ingress Accepting Connections on 443 When Only 80 is Configured.

devopsfj 251 Reputation points
2024-11-21T15:59:25.31+00:00

I am using AKS with NGINX & Private Load Balancer.

My private Load Balancer is listening on 443 & 80 (Default Behaviour).

I have an ingress host (example-app) listening on port 80 only, however, I can still reach this on ingress on 443, why is this?

Is this expected behaviour, I am getting an cert error (as expected as no cert is configured), I thought this ingress would only accept connections on HTTP (80)?

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
0 comments No comments
{count} votes

Accepted answer
  1. Nikhil Duserla 4,365 Reputation points Microsoft Vendor
    2024-11-21T21:55:15.5633333+00:00

    Hi @devopsfj,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    The Nginx Ingress Controller in AKS can handle both HTTP (port 80) and HTTPS (port 443) traffic, and it will route traffic to your services correctly. Even if your ingress resource is configured to listen only on port 80, the controller still accepts connections on port 443.

    If you disable port 80, it will stop working on both port 80 and port 443.

    If you have any further queries, do let us know.

    If the answer is helpful, please click "Accept Answer" and "Upvote it."

    User's image

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most 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.