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?
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?