ingress-nginx k8 settings configuring controller.customPorts

7/21/2021

As per: https://docs.nginx.com/nginx-ingress-controller/installation/installation-with-helm/

I'm trying to install ingress-nginx with custom ports, but it does not expose those ports when I pass in the controller.customPorts parameter. I think I'm not passing it in the right format. The documentation says

A list of custom ports to expose on the NGINX ingress controller pod. Follows the conventional Kubernetes yaml syntax for container ports.

Can anyone explain to me what that format should be?

-- NimaKapoor
kubernetes
nginx-ingress

1 Answer

7/21/2021

Assuming they mean what shows up in Pod definitions:

- port: 1234
  name: alan
-- coderanger
Source: StackOverflow