How to resolve ingress issue on helm onprem

Introduction
This article will walk you through how to resolve the Ingress-controller port already allocated issue at the time of installation.

Error

helm install harness-release ./ -n harness -f override.yaml
Error: INSTALLATION FAILED: Service "harness-ingress-controller" is invalid: spec.ports[0].nodePort: Invalid value: 32500: provided port is already allocated

This issue occurs when we are trying to deploy multiple helm charts in the same cluster, the ingress-controller service is mapped to port 32500 already.

Fix
You need to update the helm chart

  • .Values.global.ingress.nginx.httpNodePort set it to 32501 or any random unused port
  • .Values.global.ingress.nginx.httpsNodePort set it to 32506 or any random unused port.

Example:

nginx:
      controller:
        annotations: {}
      create: true
      httpNodePort: 32501
      httpsNodePort: 32506
2 Likes