KOTS Deployment Error - Invalid value: 443: provided port is already allocated

Jonathan Rivera
Jonathan Rivera
  • Updated

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

image004.png

 

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.

image.png

 

Additionally, under SSL Settings, the TLS port should be left blank, and the box should be checked to "Redirect port 80 to TLS port"

Screenshot 2024-07-18 at 3.00.21 PM.png

 

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.

 

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.