Skip to content

AWS nginx-ingress-controller context error #11489

Open
@psp123123

Description

@psp123123

Bug Report

resource URL:https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.10.1/deploy/static/provider/aws/nlb-with-tls-termination/deploy.yaml

What happened:

A clear and concise description of what the bug is.

In the documentation, the configuration example for ingress-nginx controller ports includes two containerPort entries set to 80, which causes a port conflict error:

ports:
  - containerPort: 80
    name: http
    protocol: TCP
  - containerPort: 80
    name: https
    protocol: TCP
  - containerPort: 2443
    name: tohttps
    protocol: TCP
  - containerPort: 8443
    name: webhook
    protocol: TCP

What you expected to happen:
The https service should be configured to use port 443 to avoid a port conflict with the http service.

How to reproduce it (as minimally and precisely as possible):
Follow the documentation to set up ingress-nginx controller using the provided configuration.
Deploy the configuration in a Kubernetes cluster.
Observe the pod creation failure due to port conflict.
Anything else we need to know?:
No additional information.

Environment:
Kubernetes version (use kubectl version): v1.21.0
Ingress-NGINX version: 0.47.0
Cloud provider or hardware configuration: GKE
OS (e.g: cat /etc/os-release): Ubuntu 20.04
Suggested Fix:
Update the documentation to correctly set the https service to use port 443:

yaml

ports:
  - containerPort: 80
    name: http
    protocol: TCP
  - containerPort: 443
    name: https
    protocol: TCP
  - containerPort: 2443
    name: tohttps
    protocol: TCP
  - containerPort: 8443
    name: webhook
    protocol: TCP

This will ensure the https service is correctly configured and avoids port conflict.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/supportCategorizes issue or PR as a support question.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.needs-priorityneeds-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.triage/needs-informationIndicates an issue needs more information in order to work on it.

    Type

    No type

    Projects

    • Status

      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions