Issue Description
Type: bug report or feature request
Describe what happened (or what feature you want)
k8s环境部署的Sentinel-dashboard ,pod ip是 172.19.76.231,但是日志显示Sentinel ip是172.19.79.255,以至于 MetricFetcher 报错
报错日志如下:
2023-02-22 19:50:49.517 ERROR 1 --- [pool-5-thread-1] c.a.c.s.dashboard.metric.MetricFetcher : fetch system metric http://172.19.79.255:8719/systemStatus error
java.net.NoRouteToHostException: No route to host
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_191]
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[na:1.8.0_191]
at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:171) [httpcore-nio-4.4.6.jar!/:4.4.6]
at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:145) [httpcore-nio-4.4.6.jar!/:4.4.6]
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:348) [httpcore-nio-4.4.6.jar!/:4.4.6]
at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:194) [httpasyncclient-4.1.3.jar!/:4.1.3]
at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64) [httpasyncclient-4.1.3.jar!/:4.1.3]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_191]
Describe what you expected to happen
期望获取正确的pod ip
How to reproduce it (as minimally and precisely as possible)
Tell us your environment
- jdk: 8
- sentinel : 1.8
- system : k8s
1条答案
按热度按时间0tdrvxhp1#
获取ip的源代码: