Kubernetes ingress nginx controller routing using HTTP headers

4/22/2018

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?

-- Leo Y
kubernetes-ingress
nginx

1 Answer

6/12/2018

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.

-- mikero
Source: StackOverflow