You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using shenyu-spring-boot-starter-client-springmvc, I want the host registered with the gateway to be the hostname that I specify. How can I achieve this?
Because I used the service in k8s to provide services, therefore I used the following configuration in the configuration file.
However, after registering to the gateway, it was found that the upstream of the divide was still the IP address of this service instead of the service name. Through source code analysis, it was found in the org.apache.shenyu.client.springmvc.init.SpringMvcClientEventListener#buildURIRegisterDTO method
IpUtils.isCompleteHost(this.host) returns false, so the host IP will be fetched. Can this be changed here to support configuring the host name or svc in k8s?
The text was updated successfully, but these errors were encountered:
I also discovered this issue, and then I used a multilingual HTTP client to call the interface using hostname. I don't know if it's a design problem or something, but I can still achieve normal forwarding
Question
When using shenyu-spring-boot-starter-client-springmvc, I want the host registered with the gateway to be the hostname that I specify. How can I achieve this?
Because I used the service in k8s to provide services, therefore I used the following configuration in the configuration file.
However, after registering to the gateway, it was found that the upstream of the divide was still the IP address of this service instead of the service name. Through source code analysis, it was found in the
org.apache.shenyu.client.springmvc.init.SpringMvcClientEventListener#buildURIRegisterDTO
methodIpUtils.isCompleteHost(this.host)
returns false, so the host IP will be fetched. Can this be changed here to support configuring the host name or svc in k8s?The text was updated successfully, but these errors were encountered: