Description
Bug Report
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
Labels
Type
Projects
Status
No status