Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
apiserver aggregator can not change the request.Host when access the external http service #71784
When apiserver is using apiservice and service EXTERNAL-IP to access the external http service(a sample metric service),the "http request header Host" is still the apiserver's Host, causing the external http proxy services are failed to forward the request normally.
The requested link is like this， client -> apiserver -> external http proxy service -> real http service(metric service)
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
1.create apiservice and ExternalName service
The following is the configuration：
Anything else we need to know?:
referenced this issue
Dec 6, 2018
so test-ext-adaptor.dailyevn.net is the proxy server, and from its access log, you see the req header is "127.0.0.1:6443", which is the apiserver's host.
It seems that is working as expected. i.e, when apiserver sends the request to the proxy server, the req header should be apiserver's host. it cannot be the proxy server's host.
Am I missing something here?