I run nginx on pod in Kubernetes, 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?
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?
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more