You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a specific use case, I need my Nginx ingress controller to listen on different ports than 80/443.
I cannot map my specific hosts ports (here 40080 and 40443) to ingress controller 80/443 ports because hostPort parameter is not working for now (see kubernetes/kubeadm#11 and kubernetes/kubernetes#31307 ). So I have no other choices than to map my container ports to my node ports (hostNetwork: True).
So, I tried to modify Nginx to use custom HTTP/S ports based on a configmap.
I work on a specific local branch and I already made some modifications.
But I'm stuck with some lua stuff. It appears that HTTP/S ports are hardcoded in rootfs/etc/nginx/lua/vendor/lua-resty-http/lib/resty/http.lua file. I don't know anything about lua so I am sure how to use custom ports in that part.
I can make a string substitution in this file at the Ingress controller startup, but not sure if it is the right way to do...
If anyone can help on this. Also interesting on feedback about this feature, maybe it is a too specific case.
The text was updated successfully, but these errors were encountered:
For a specific use case, I need my Nginx ingress controller to listen on different ports than 80/443.
I cannot map my specific hosts ports (here 40080 and 40443) to ingress controller 80/443 ports because hostPort parameter is not working for now (see kubernetes/kubeadm#11 and kubernetes/kubernetes#31307 ). So I have no other choices than to map my container ports to my node ports (hostNetwork: True).
So, I tried to modify Nginx to use custom HTTP/S ports based on a configmap.
I work on a specific local branch and I already made some modifications.
But I'm stuck with some lua stuff. It appears that HTTP/S ports are hardcoded in
rootfs/etc/nginx/lua/vendor/lua-resty-http/lib/resty/http.lua
file. I don't know anything about lua so I am sure how to use custom ports in that part.I can make a string substitution in this file at the Ingress controller startup, but not sure if it is the right way to do...
If anyone can help on this. Also interesting on feedback about this feature, maybe it is a too specific case.
The text was updated successfully, but these errors were encountered: