日志报错:
2023-04-25 17:37:28,081 WARN [Channel<23>: (nacos-1.nacos-headless.test-middleware.svc.cluster.local:7848)] Failed to resolve name. status=Status{code=UNAVAILABLE, description=Unable to resolve host nacos-1.nacos-headless.test-middleware.svc.cluster.local, cause=java.lang.RuntimeException: java.net.UnknownHostException: nacos-1.nacos-headless.test-middleware.svc.cluster.local
at io.grpc.internal.DnsNameResolver.resolveAddresses(DnsNameResolver.java:224)
at io.grpc.internal.DnsNameResolver.doResolve(DnsNameResolver.java:283)
at io.grpc.internal.DnsNameResolver$Resolve.run(DnsNameResolver.java:319)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)
Caused by: java.net.UnknownHostException: nacos-1.nacos-headless.test-middleware.svc.cluster.local
at java.net.InetAddress$CachedAddresses.get(InetAddress.java:764)
at java.net.InetAddress.getAllByName0(InetAddress.java:1277)
at java.net.InetAddress.getAllByName(InetAddress.java:1136)
at java.net.InetAddress.getAllByName(InetAddress.java:1064)
at io.grpc.internal.DnsNameResolver$JdkAddressResolver.resolveAddress(DnsNameResolver.java:632)
at io.grpc.internal.DnsNameResolver.resolveAddresses(DnsNameResolver.java:220)
日志报错: 2023-04-25 17:37:28,081 WARN [Channel<23>: (nacos-1.nacos-headless.test-middleware.svc.cluster.local:7848)] Failed to resolve name. status=Status{code=UNAVAILABLE, description=Unable to resolve host nacos-1.nacos-headless.test-middleware.svc.cluster.local, cause=java.lang.RuntimeException: java.net.UnknownHostException: nacos-1.nacos-headless.test-middleware.svc.cluster.local at io.grpc.internal.DnsNameResolver.resolveAddresses(DnsNameResolver.java:224) at io.grpc.internal.DnsNameResolver.doResolve(DnsNameResolver.java:283) at io.grpc.internal.DnsNameResolver$Resolve.run(DnsNameResolver.java:319) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750) Caused by: java.net.UnknownHostException: nacos-1.nacos-headless.test-middleware.svc.cluster.local at java.net.InetAddress$CachedAddresses.get(InetAddress.java:764) at java.net.InetAddress.getAllByName0(InetAddress.java:1277) at java.net.InetAddress.getAllByName(InetAddress.java:1136) at java.net.InetAddress.getAllByName(InetAddress.java:1064) at io.grpc.internal.DnsNameResolver$JdkAddressResolver.resolveAddress(DnsNameResolver.java:632) at io.grpc.internal.DnsNameResolver.resolveAddresses(DnsNameResolver.java:220)
ping: nacos-1.nacos-headless.test-middleware.svc.cluster.local: Name or service not known