Author: Jonathan Rivera
Date: July 18, 2024
Audience: External (Everyone or Signed-in users)
Environmental details: Self-hosted KOTS
Summary
When deploying, at the following error is shown in helmstderr in the deploy logs:
Error: UPGRADE FAILED:
failed to create resource:
Service "ingress-nginx-controller" is invalid:
spec.ports[1].nodePort: Invalid value: 443: provided port is already allocated
Solution
This is likely due to HTTP and HTTPS both being configured to use port 443.
You can quickly check this by running the following command:
kubectl kots get config | grep -E "http_port|https_port|use_ssl" -A 2
This setting is hidden if "Use TLS" is checked. In the Admin Console, Under Web Server, if you uncheck the "Use TLS" box, you will see a Port field appear. That field needs to be left blank.
After you clear that field, you can re-check the "Use TLS" box.
Additionally, under SSL Settings, the TLS port should be left blank, and the box should be checked to "Redirect port 80 to TLS port"
Cause
HTTP and HTTPS are both configured to use port 443.
Prevention
Double-check port configurations before deploying.
Additional Information/Metadata
- Ports
- Networking
- Certificate
Please feel free to leave feedback in the comments below.
Comments
0 comments
Please sign in to leave a comment.