Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kubernetes ingress nginx controller routing using HTTP headers

I have installed Kubernetes ingress nginx controller as described here. I am looking further to customize the routing logic by parsing HTTP header and altering the base ingress route accordingly. I know that it can be done using Lua script to be executed as part of the server routing configuration. Can anyone advise how I inject the lua script into Kubernetes ingress nginx controller configuration?

like image 528
Leo Y Avatar asked Jan 23 '26 21:01

Leo Y


1 Answers

I am doing a quite similar task. Previously we have a separate Nginx instance which has openresty installed.

My solution is to build our own customized image based on kubernetes nginx-ingress, and also include the openresty module inside the module.

like image 58
mikero Avatar answered Jan 27 '26 01:01

mikero



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!