bash-5.1# ping nebula-storaged-0.nebula-storaged-headless.default.svc.cluster.local -c 1
PING nebula-storaged-0.nebula-storaged-headless.default.svc.cluster.local (172.17.0.13): 56 data bytes
64 bytes from 172.17.0.13: seq=0 ttl=64 time=0.123 ms
--- nebula-storaged-0.nebula-storaged-headless.default.svc.cluster.local ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 0.123/0.123/0.123 ms
bash-5.1# nslookup nebula-storaged-0.nebula-storaged-headless.default.svc.cluster.local
Server: 10.96.0.10
Address: 10.96.0.10:53
*** Can't find nebula-storaged-0.nebula-storaged-headless.default.svc.cluster.local: No answer
Name: nebula-storaged-0.nebula-storaged-headless.default.svc.cluster.local
Address: 172.17.0.13
bash-5.1# hostname
apisix-6d89854bc5-5m788
While it ended up with following errors:
2022/11/15 12:26:59 [error] 44#44: *9538531 stream [lua] resolver.lua:47: parse_domain(): failed to parse domain: nebula-storaged-0.nebula-storaged-headless.default.svc.cluster.local, error: failed to query the DNS server: dns client error: 101 empty record received while prereading client data, client: 172.17.0.1, server: 0.0.0.0:9779
2022/11/15 12:26:59 [error] 44#44: *9538531 stream [lua] upstream.lua:79: parse_domain_for_nodes(): dns resolver domain: nebula-storaged-0.nebula-storaged-headless.default.svc.cluster.local error: failed to query the DNS server: dns client error: 101 empty record received while prereading client data, client: 172.17.0.1, server: 0.0.0.0:9779
2022/11/15 12:26:59 [error] 44#44: *9538531 stream [lua] init.lua:965: stream_preread_phase(): failed to set upstream: no valid upstream node while prereading client data, client: 172.17.0.1, server: 0.0.0.0:9779
Expected Behavior
Those stream_routes with upstream nodes like nebula-storaged-2.nebula-storaged-headless.default.svc.cluster.local could resolved
Error Logs
2022/11/15 12:26:59 [error] 44#44: *9538531 stream [lua] resolver.lua:47: parse_domain(): failed to parse domain: nebula-storaged-0.nebula-storaged-headless.default.svc.cluster.local, error: failed to query the DNS server: dns client error: 101 empty record received while prereading client data, client: 172.17.0.1, server: 0.0.0.0:9779
2022/11/15 12:26:59 [error] 44#44: *9538531 stream [lua] upstream.lua:79: parse_domain_for_nodes(): dns resolver domain: nebula-storaged-0.nebula-storaged-headless.default.svc.cluster.local error: failed to query the DNS server: dns client error: 101 empty record received while prereading client data, client: 172.17.0.1, server: 0.0.0.0:9779
2022/11/15 12:26:59 [error] 44#44: *9538531 stream [lua] init.lua:965: stream_preread_phase(): failed to set upstream: no valid upstream node while prereading client data, client: 172.17.0.1, server: 0.0.0.0:9779
Then call tcp over tls from the host like nebula-storaged-0.nebula-storaged-headless.default.svc.cluster.local:9779
BTW. After I changed upstream to the IP address, everything worked like a charm.
Environment
APISIX version (run apisix version):
❯ helm list
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
apisix default 1 2022-11-15 03:10:02.695689968 +0000 UTC deployed apisix-0.11.2 2.15.0
apisix-dashboard default 1 2022-11-15 03:31:47.722413097 +0000 UTC deployed apisix-dashboard-0.6.1 2.13.0
Operating system (run uname -a):
❯ kubectl exec -it $apisix_pod -- uname -a
Defaulted container "apisix" out of: apisix, wait-etcd (init)
Linux apisix-6d89854bc5-5m788 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64 Linux
OpenResty / Nginx version (run openresty -V or nginx -V):
Current Behavior
They could be resolved in apisix pod(am I right?)
While it ended up with following errors:
Expected Behavior
Those stream_routes with upstream nodes like
nebula-storaged-2.nebula-storaged-headless.default.svc.cluster.local
could resolvedError Logs
Steps to Reproduce
Then call tcp over tls from the host like
nebula-storaged-0.nebula-storaged-headless.default.svc.cluster.local:9779
BTW. After I changed upstream to the IP address, everything worked like a charm.
Environment
apisix version
):uname -a
):OpenResty / Nginx version (run
openresty -V
ornginx -V
):etcd version, if relevant (run
curl http://127.0.0.1:9090/v1/server_info
):APISIX Dashboard version, if relevant: n/a
Plugin runner version, for issues related to plugin runners:
LuaRocks version, for installation issues (run
luarocks --version
):