Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use custom ports #701

Closed
pichouk opened this issue May 10, 2017 · 2 comments
Closed

Use custom ports #701

pichouk opened this issue May 10, 2017 · 2 comments

Comments

@pichouk
Copy link

pichouk commented May 10, 2017

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.

@aledbf
Copy link
Member

aledbf commented May 10, 2017

This will be covered when #620 is fixed.

@aledbf
Copy link
Member

aledbf commented May 10, 2017

Closing. Please reopen if you have more questions

@aledbf aledbf closed this as completed May 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants