Remove `Host` Header in Kubernetes Service

3/28/2018

I'm new to kubernetes and have setup a service with a few pods. I got this working, however I would like to remove or override the Host Header in the request. Can be overridden from the service somehow? I read into ingress but that will just reroute based on rules

Thanks in advance

-- Decrypter
kubernetes
kubernetes-service

1 Answer

3/28/2018

I read into ingress but that will just reroute based on rules

With the addition that many of them offer support for custom configuration snippets to solve that very problem.

While provisioning Graylog2 last week, I took advantage of that annotation to add a custom header between the Ingress controller and the Graylog2 cluster, which would have otherwise required standing up a custom nginx or http server just for the one simple header. I highly recommend Ingress controllers, I think they're awesome.

-- mdaniel
Source: StackOverflow