How to get the client domain info from kubernetes pod?

11/26/2015

I run nginx on pod in kubernets, and I want to do proxy_pass in nginx according to the client request domain something like a.b.c . but I got the service name.

So how to get the client domain info from kubernetes pod?

-- sope
kubernetes

1 Answer

11/30/2015

If I understand, you're asking for the HTTP "Host" header, right? Kubernetes does not touch that at all. Can you maybe explain more about what you mean with "I got the service name"? Where did you get that?

-- Tim Hockin
Source: StackOverflow