jeffguorg commented on issue #2533:
URL: https://github.com/apache/apisix/issues/2533#issuecomment-718407572


   @membphis 
   
   Hi, dns resolver(resolv.conf) was set by kubernetes and dns service looks 
good to me:
   
   ```
   guochao@chao-20kna04gcd ~ % kubectl --namespace apisix exec -it apisix-pt4rv 
-- bash
   bash5.0# ping some-k8s-svc.default.svc.cluster.local -w 3
   PING some-k8s-svc.default.svc.cluster.local (172.21.10.79): 56 data bytes
   64 bytes from 172.21.10.79: seq=0 ttl=64 time=0.053 ms
   64 bytes from 172.21.10.79: seq=1 ttl=64 time=0.070 ms
   64 bytes from 172.21.10.79: seq=2 ttl=64 time=0.069 ms
   
   --- some-k8s-svc.default.svc.cluster.local ping statistics ---
   4 packets transmitted, 3 packets received, 25% packet loss
   round-trip min/avg/max = 0.053/0.064/0.070 ms
   
   bash-5.0# cat conf/nginx.conf  | grep resolv
       resolver 172.21.0.10 valid=30;
       resolver_timeout 5;
           local dns_resolver = { "172.21.0.10", }
               dns_resolver = dns_resolver,
   
   bash-5.0# cat /etc/resolv.conf 
   nameserver 172.21.0.10
   search apisix.svc.cluster.local svc.cluster.local cluster.local
   options ndots:5
   ```
   
   
   
   here is the logs/error.log
   
   [output.txt](https://github.com/apache/apisix/files/5456597/output.txt)
   
   ```
   guochao@chao-20kna04gcd ~ % kubectl --namespace apisix exec -it apisix-pt4rv 
-- bash
   bash-5.0# cat logs/error.log
   2020/10/29 06:45:58 [info] 1#1: [lua] core.lua:22: use config_center: etcd
   2020/10/29 06:45:58 [info] 1#1: [lua] init.lua:46: parse_args(): dns 
resolver["172.21.0.10"]
   2020/10/29 06:45:58 [notice] 1#1: [lua] id.lua:69: init(): not found apisix 
uid, generate a new one: 06576e9a-7193-4607-acf9-2001bc663adc
   2020/10/29 06:45:58 [notice] 1#1: using the "epoll" event method
   2020/10/29 06:45:58 [notice] 1#1: openresty/1.17.8.2
   2020/10/29 06:45:58 [notice] 1#1: built by gcc 9.3.0 (Alpine 9.3.0)
   2020/10/29 06:45:58 [notice] 1#1: OS: Linux 3.10.0-1062.18.1.el7.x86_64
   2020/10/29 06:45:58 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
   2020/10/29 06:45:58 [notice] 1#1: start worker processes
   2020/10/29 06:45:58 [notice] 1#1: start worker process 35
   2020/10/29 06:45:58 [notice] 1#1: start worker process 36
   2020/10/29 06:45:58 [notice] 35#35: sched_setaffinity(): using cpu #0
   2020/10/29 06:45:58 [notice] 1#1: start cache manager process 37
   2020/10/29 06:45:58 [notice] 36#36: sched_setaffinity(): using cpu #1
   2020/10/29 06:45:58 [notice] 1#1: start cache loader process 38
   2020/10/29 06:45:58 [debug] 35#35: *1 [lua] events.lua:211: do_event_json(): 
worker-events: handling event; source=resty-worker-events, event=started, 
pid=35, data=nil
   2020/10/29 06:45:58 [info] 35#35: *1 [lua] radixtree.lua:307: 
pre_insert_route(): path: /apisix/admin/ operator: <=, context: 
init_worker_by_lua*
   2020/10/29 06:45:58 [info] 35#35: *1 [lua] radixtree.lua:179: 
insert_route(): insert route path: /apisix/admin/ dataprt: 1, context: 
init_worker_by_lua*
   2020/10/29 06:45:58 [info] 35#35: *1 [lua] radixtree.lua:307: 
pre_insert_route(): path: /apisix/admin/stream_routes operator: <=, context: 
init_worker_by_lua*
   2020/10/29 06:45:58 [info] 35#35: *1 [lua] radixtree.lua:179: 
insert_route(): insert route path: /apisix/admin/stream_routes dataprt: 2, 
context: init_worker_by_lua*
   2020/10/29 06:45:58 [info] 35#35: *1 [lua] radixtree.lua:307: 
pre_insert_route(): path: /apisix/admin/plugins/list operator: =, context: 
init_worker_by_lua*
   2020/10/29 06:45:58 [info] 35#35: *1 [lua] radixtree.lua:307: 
pre_insert_route(): path: /apisix/admin/plugins/reload operator: =, context: 
init_worker_by_lua*
   2020/10/29 06:45:58 [debug] 36#36: *2 [lua] events.lua:211: do_event_json(): 
worker-events: handling event; source=resty-worker-events, event=started, 
pid=36, data=nil
   2020/10/29 06:45:58 [info] 36#36: *2 [lua] radixtree.lua:307: 
pre_insert_route(): path: /apisix/admin/ operator: <=, context: 
init_worker_by_lua*
   2020/10/29 06:45:58 [info] 36#36: *2 [lua] radixtree.lua:179: 
insert_route(): insert route path: /apisix/admin/ dataprt: 1, context: 
init_worker_by_lua*
   2020/10/29 06:45:58 [info] 36#36: *2 [lua] radixtree.lua:307: 
pre_insert_route(): path: /apisix/admin/stream_routes operator: <=, context: 
init_worker_by_lua*
   2020/10/29 06:45:58 [info] 36#36: *2 [lua] radixtree.lua:179: 
insert_route(): insert route path: /apisix/admin/stream_routes dataprt: 2, 
context: init_worker_by_lua*
   2020/10/29 06:45:58 [info] 36#36: *2 [lua] radixtree.lua:307: 
pre_insert_route(): path: /apisix/admin/plugins/list operator: =, context: 
init_worker_by_lua*
   2020/10/29 06:45:58 [info] 36#36: *2 [lua] radixtree.lua:307: 
pre_insert_route(): path: /apisix/admin/plugins/reload operator: =, context: 
init_worker_by_lua*
   2020/10/29 06:45:58 [debug] 35#35: *1 [lua] prometheus_resty_counter.lua:70: 
new(): start timer for shdict prometheus-metrics on worker 0
   2020/10/29 06:45:58 [debug] 35#35: *1 [lua] evp.lua:142: openssl11=true 
err=nil
   2020/10/29 06:45:58 [info] 35#35: *1 [lua] plugin.lua:126: load(): load 
plugin times: 1, context: init_worker_by_lua*
   2020/10/29 06:45:58 [debug] 36#36: *2 [lua] prometheus_resty_counter.lua:70: 
new(): start timer for shdict prometheus-metrics on worker 1
   2020/10/29 06:45:58 [info] 35#35: *1 [lua] plugin.lua:165: load_stream(): 
stream plugins: [{"priority":1000,"preread":"function: 
0x7f0d7b3b1838","schema":{"properties":{"protocol_level":{"type":"integer"},"upstream":{"type":"object","properties":{"ip":{"type":"string"},"port":{"type":"number"}}},"protocol_name":{"type":"string"}},"type":"object","required":["protocol_name","protocol_level","upstream"]},"log":"function:
 0x7f0d7b3b1970","check_schema":"function: 
0x7f0d7b3b15d0","name":"mqtt-proxy","version":0.1}], context: 
init_worker_by_lua*
   2020/10/29 06:45:58 [info] 35#35: *1 [lua] plugin.lua:167: load_stream(): 
load stream plugin times: 1, context: init_worker_by_lua*
   2020/10/29 06:45:58 [notice] 35#35: *1 [lua] debug.lua:44: 
read_debug_yaml(): failed to fetch /usr/local/apisix/conf/debug.yaml 
attributes: cannot obtain information from file 
'/usr/local/apisix/conf/debug.yaml': No such file or directory, context: 
init_worker_by_lua*
   2020/10/29 06:45:58 [debug] 36#36: *2 [lua] evp.lua:142: openssl11=true 
err=nil
   2020/10/29 06:45:58 [debug] 35#35: *8 [lua] config_etcd.lua:147: readdir 
key: /apisix/proto res: 
{"createdIndex":21,"modifiedIndex":21,"key":"\/apisix\/proto","dir":true}
   2020/10/29 06:45:58 [debug] 35#35: *5 [lua] config_etcd.lua:147: readdir 
key: /apisix/ssl res: 
{"createdIndex":18,"modifiedIndex":18,"key":"\/apisix\/ssl","dir":true}
   2020/10/29 06:45:58 [debug] 35#35: *9 [lua] config_etcd.lua:147: readdir 
key: /apisix/consumers res: 
{"createdIndex":16,"modifiedIndex":16,"key":"\/apisix\/consumers","dir":true}
   2020/10/29 06:45:58 [debug] 35#35: *6 [lua] config_etcd.lua:147: readdir 
key: /apisix/global_rules res: 
{"createdIndex":19,"modifiedIndex":19,"key":"\/apisix\/global_rules","dir":true}
   2020/10/29 06:45:58 [debug] 35#35: *3 [lua] config_etcd.lua:147: readdir 
key: /apisix/routes res: 
{"nodes":[{"value":{"priority":0,"methods":["GET","POST"],"uri":"\/*","id":"bfe058f5-f3c2-426f-820e-dc6535a51777","service_protocol":"grpc","service_id":"66ebf6d4-5a75-44c9-b25c-e3e562b88525"},"createdIndex":31,"key":"\/apisix\/routes\/bfe058f5-f3c2-426f-820e-dc6535a51777","modifiedIndex":31}],"modifiedIndex":12,"createdIndex":12,"key":"\/apisix\/routes","dir":true}
   2020/10/29 06:45:58 [info] 36#36: *2 [lua] plugin.lua:126: load(): load 
plugin times: 1, context: init_worker_by_lua*
   2020/10/29 06:45:58 [info] 36#36: *2 [lua] plugin.lua:165: load_stream(): 
stream plugins: [{"priority":1000,"preread":"function: 
0x7f0d7b3b1398","schema":{"properties":{"protocol_level":{"type":"integer"},"upstream":{"type":"object","properties":{"ip":{"type":"string"},"port":{"type":"number"}}},"protocol_name":{"type":"string"}},"type":"object","required":["protocol_name","protocol_level","upstream"]},"log":"function:
 0x7f0d7b3b14d0","check_schema":"function: 
0x7f0d7b3b1130","name":"mqtt-proxy","version":0.1}], context: 
init_worker_by_lua*
   2020/10/29 06:45:58 [info] 36#36: *2 [lua] plugin.lua:167: load_stream(): 
load stream plugin times: 1, context: init_worker_by_lua*
   2020/10/29 06:45:58 [debug] 35#35: *10 [lua] config_etcd.lua:147: readdir 
key: /apisix/upstreams res: 
{"createdIndex":13,"modifiedIndex":13,"key":"\/apisix\/upstreams","dir":true}
   2020/10/29 06:45:58 [debug] 35#35: *7 [lua] config_etcd.lua:147: readdir 
key: /apisix/services res: 
{"nodes":[{"value":{"upstream":{"nodes":{"some-k8s-svc.default.svc.cluster.local:5202":1},"hash_on":"vars","type":"roundrobin"},"id":"66ebf6d4-5a75-44c9-b25c-e3e562b88525"},"createdIndex":28,"key":"\/apisix\/services\/66ebf6d4-5a75-44c9-b25c-e3e562b88525","modifiedIndex":28}],"modifiedIndex":14,"createdIndex":14,"key":"\/apisix\/services","dir":true}
   2020/10/29 06:45:58 [notice] 36#36: *2 [lua] debug.lua:44: 
read_debug_yaml(): failed to fetch /usr/local/apisix/conf/debug.yaml 
attributes: cannot obtain information from file 
'/usr/local/apisix/conf/debug.yaml': No such file or directory, context: 
init_worker_by_lua*
   2020/10/29 06:45:58 [info] 35#35: *7 [lua] service.lua:81: filter(): filter 
service: 
{"value":{"upstream":{"nodes":[{"host":"some-k8s-svc.default.svc.cluster.local","port":5202,"weight":1}],"hash_on":"vars","type":"roundrobin"},"id":"66ebf6d4-5a75-44c9-b25c-e3e562b88525"},"clean_handlers":{},"createdIndex":28,"has_domain":true,"key":"\/apisix\/services\/66ebf6d4-5a75-44c9-b25c-e3e562b88525","modifiedIndex":28},
 context: ngx.timer
   2020/10/29 06:45:58 [debug] 35#35: *18 [lua] events.lua:211: 
do_event_json(): worker-events: handling event; source=resty-worker-events, 
event=started, pid=36, data=nil
   2020/10/29 06:45:58 [debug] 36#36: *26 [lua] config_etcd.lua:147: readdir 
key: /apisix/upstreams res: 
{"createdIndex":13,"modifiedIndex":13,"key":"\/apisix\/upstreams","dir":true}
   2020/10/29 06:45:58 [debug] 36#36: *25 [lua] config_etcd.lua:147: readdir 
key: /apisix/consumers res: 
{"createdIndex":16,"modifiedIndex":16,"key":"\/apisix\/consumers","dir":true}
   2020/10/29 06:45:58 [debug] 36#36: *23 [lua] config_etcd.lua:147: readdir 
key: /apisix/services res: 
{"nodes":[{"value":{"upstream":{"nodes":{"some-k8s-svc.default.svc.cluster.local:5202":1},"hash_on":"vars","type":"roundrobin"},"id":"66ebf6d4-5a75-44c9-b25c-e3e562b88525"},"createdIndex":28,"key":"\/apisix\/services\/66ebf6d4-5a75-44c9-b25c-e3e562b88525","modifiedIndex":28}],"modifiedIndex":14,"createdIndex":14,"key":"\/apisix\/services","dir":true}
   2020/10/29 06:45:58 [info] 36#36: *23 [lua] service.lua:81: filter(): filter 
service: 
{"value":{"upstream":{"nodes":[{"host":"some-k8s-svc.default.svc.cluster.local","port":5202,"weight":1}],"hash_on":"vars","type":"roundrobin"},"id":"66ebf6d4-5a75-44c9-b25c-e3e562b88525"},"clean_handlers":{},"createdIndex":28,"has_domain":true,"key":"\/apisix\/services\/66ebf6d4-5a75-44c9-b25c-e3e562b88525","modifiedIndex":28},
 context: ngx.timer
   2020/10/29 06:45:58 [debug] 36#36: *21 [lua] config_etcd.lua:147: readdir 
key: /apisix/ssl res: 
{"createdIndex":18,"modifiedIndex":18,"key":"\/apisix\/ssl","dir":true}
   2020/10/29 06:45:58 [debug] 36#36: *22 [lua] config_etcd.lua:147: readdir 
key: /apisix/global_rules res: 
{"createdIndex":19,"modifiedIndex":19,"key":"\/apisix\/global_rules","dir":true}
   2020/10/29 06:45:58 [debug] 36#36: *19 [lua] config_etcd.lua:147: readdir 
key: /apisix/routes res: 
{"nodes":[{"value":{"priority":0,"methods":["GET","POST"],"uri":"\/*","id":"bfe058f5-f3c2-426f-820e-dc6535a51777","service_protocol":"grpc","service_id":"66ebf6d4-5a75-44c9-b25c-e3e562b88525"},"createdIndex":31,"key":"\/apisix\/routes\/bfe058f5-f3c2-426f-820e-dc6535a51777","modifiedIndex":31}],"modifiedIndex":12,"createdIndex":12,"key":"\/apisix\/routes","dir":true}
   2020/10/29 06:45:58 [debug] 36#36: *24 [lua] config_etcd.lua:147: readdir 
key: /apisix/proto res: 
{"createdIndex":21,"modifiedIndex":21,"key":"\/apisix\/proto","dir":true}
   2020/10/29 06:45:59 [notice] 36#36: *52 [lua] debug.lua:44: 
read_debug_yaml(): failed to fetch /usr/local/apisix/conf/debug.yaml 
attributes: cannot obtain information from file 
'/usr/local/apisix/conf/debug.yaml': No such file or directory, context: 
ngx.timer
   (......repeated a lot of times......)
   2020/10/29 06:46:28 [notice] 36#36: *804 [lua] debug.lua:44: 
read_debug_yaml(): failed to fetch /usr/local/apisix/conf/debug.yaml 
attributes: cannot obtain information from file 
'/usr/local/apisix/conf/debug.yaml': No such file or directory, context: 
ngx.timer
   2020/10/29 06:46:28 [info] 35#35: *8 [lua] config_etcd.lua:229: waitdir key: 
/apisix/proto prev_index: 32, context: ngx.timer
   2020/10/29 06:46:28 [info] 35#35: *8 [lua] config_etcd.lua:230: res: null, 
context: ngx.timer
   2020/10/29 06:46:28 [info] 35#35: *5 [lua] config_etcd.lua:229: waitdir key: 
/apisix/ssl prev_index: 32, context: ngx.timer
   2020/10/29 06:46:28 [info] 35#35: *5 [lua] config_etcd.lua:230: res: null, 
context: ngx.timer
   2020/10/29 06:46:28 [info] 35#35: *9 [lua] config_etcd.lua:229: waitdir key: 
/apisix/consumers prev_index: 32, context: ngx.timer
   2020/10/29 06:46:28 [info] 35#35: *9 [lua] config_etcd.lua:230: res: null, 
context: ngx.timer
   2020/10/29 06:46:28 [info] 35#35: *6 [lua] config_etcd.lua:229: waitdir key: 
/apisix/global_rules prev_index: 32, context: ngx.timer
   2020/10/29 06:46:28 [info] 35#35: *6 [lua] config_etcd.lua:230: res: null, 
context: ngx.timer
   2020/10/29 06:46:28 [info] 35#35: *7 [lua] config_etcd.lua:229: waitdir key: 
/apisix/services prev_index: 32, context: ngx.timer
   2020/10/29 06:46:28 [info] 35#35: *7 [lua] config_etcd.lua:230: res: null, 
context: ngx.timer
   2020/10/29 06:46:28 [info] 35#35: *3 [lua] config_etcd.lua:229: waitdir key: 
/apisix/routes prev_index: 32, context: ngx.timer
   2020/10/29 06:46:28 [info] 35#35: *3 [lua] config_etcd.lua:230: res: null, 
context: ngx.timer
   2020/10/29 06:46:28 [info] 35#35: *10 [lua] config_etcd.lua:229: waitdir 
key: /apisix/upstreams prev_index: 32, context: ngx.timer
   2020/10/29 06:46:28 [info] 35#35: *10 [lua] config_etcd.lua:230: res: null, 
context: ngx.timer
   2020/10/29 06:46:28 [info] 36#36: *26 [lua] config_etcd.lua:229: waitdir 
key: /apisix/upstreams prev_index: 32, context: ngx.timer
   2020/10/29 06:46:28 [info] 36#36: *26 [lua] config_etcd.lua:230: res: null, 
context: ngx.timer
   2020/10/29 06:46:28 [info] 36#36: *25 [lua] config_etcd.lua:229: waitdir 
key: /apisix/consumers prev_index: 32, context: ngx.timer
   2020/10/29 06:46:28 [info] 36#36: *25 [lua] config_etcd.lua:230: res: null, 
context: ngx.timer
   2020/10/29 06:46:28 [info] 36#36: *23 [lua] config_etcd.lua:229: waitdir 
key: /apisix/services prev_index: 32, context: ngx.timer
   2020/10/29 06:46:28 [info] 36#36: *23 [lua] config_etcd.lua:230: res: null, 
context: ngx.timer
   2020/10/29 06:46:28 [info] 36#36: *22 [lua] config_etcd.lua:229: waitdir 
key: /apisix/global_rules prev_index: 32, context: ngx.timer
   2020/10/29 06:46:28 [info] 36#36: *22 [lua] config_etcd.lua:230: res: null, 
context: ngx.timer
   2020/10/29 06:46:28 [info] 36#36: *19 [lua] config_etcd.lua:229: waitdir 
key: /apisix/routes prev_index: 32, context: ngx.timer
   2020/10/29 06:46:28 [info] 36#36: *19 [lua] config_etcd.lua:230: res: null, 
context: ngx.timer
   2020/10/29 06:46:28 [info] 36#36: *24 [lua] config_etcd.lua:229: waitdir 
key: /apisix/proto prev_index: 32, context: ngx.timer
   2020/10/29 06:46:28 [info] 36#36: *24 [lua] config_etcd.lua:230: res: null, 
context: ngx.timer
   2020/10/29 06:46:28 [info] 36#36: *21 [lua] config_etcd.lua:229: waitdir 
key: /apisix/ssl prev_index: 32, context: ngx.timer
   2020/10/29 06:46:28 [info] 36#36: *21 [lua] config_etcd.lua:230: res: null, 
context: ngx.timer
   2020/10/29 06:46:29 [notice] 35#35: *842 [lua] debug.lua:44: 
read_debug_yaml(): failed to fetch /usr/local/apisix/conf/debug.yaml 
attributes: cannot obtain information from file 
'/usr/local/apisix/conf/debug.yaml': No such file or directory, context: 
ngx.timer
   (......repeated a lot of times......)
   2020/10/29 06:46:33 [notice] 36#36: *948 [lua] debug.lua:44: 
read_debug_yaml(): failed to fetch /usr/local/apisix/conf/debug.yaml 
attributes: cannot obtain information from file 
'/usr/local/apisix/conf/debug.yaml': No such file or directory, context: 
ngx.timer
   2020/10/29 06:46:33 [debug] 36#36: *954 [lua] plugin.lua:202: 
create_obj_fun(): fetched api routes: 
[{"methods":["POST"],"uri":"\/apisix\/batch-requests","handler":"function: 
0x7f0d7b3f2d80"}]
   2020/10/29 06:46:33 [debug] 36#36: *954 [lua] plugin.lua:202: 
create_obj_fun(): fetched api routes: 
[{"methods":["POST"],"uri":"\/apisix\/plugin\/wolf-rbac\/login","handler":"function:
 
0x7f0d7b431f48"},{"methods":["PUT"],"uri":"\/apisix\/plugin\/wolf-rbac\/change_pwd","handler":"function:
 
0x7f0d7b432120"},{"methods":["GET"],"uri":"\/apisix\/plugin\/wolf-rbac\/user_info","handler":"function:
 0x7f0d7b4321c8"}]
   2020/10/29 06:46:33 [debug] 36#36: *954 [lua] plugin.lua:202: 
create_obj_fun(): fetched api routes: 
[{"methods":["GET"],"uri":"\/apisix\/plugin\/jwt\/sign","handler":"function: 
0x7f0d8007ade0"}]
   2020/10/29 06:46:33 [debug] 36#36: *954 [lua] plugin.lua:202: 
create_obj_fun(): fetched api routes: 
[{"methods":["GET"],"uri":"\/apisix\/status","handler":"function: 
0x7f0d7b4b5430"}]
   2020/10/29 06:46:33 [debug] 36#36: *954 [lua] plugin.lua:202: 
create_obj_fun(): fetched api routes: 
[{"methods":["GET"],"uri":"\/apisix\/prometheus\/metrics","handler":"function: 
0x7f0d8b77fbb8"}]
   2020/10/29 06:46:33 [info] 36#36: *954 [lua] radixtree_uri.lua:66: 
create_radixtree_router(): insert uri route: 
{"priority":0,"methods":["GET","POST"],"uri":"\/*","id":"bfe058f5-f3c2-426f-820e-dc6535a51777","service_protocol":"grpc","service_id":"66ebf6d4-5a75-44c9-b25c-e3e562b88525"},
 client: <mylaptopip>, server: , request: "GET / HTTP/1.1", host: "<my-server>"
   2020/10/29 06:46:33 [info] 36#36: *954 [lua] radixtree_uri.lua:87: 
create_radixtree_router(): route items: [{"handler":"function: 
0x7f0d7b291b78","methods":["POST"],"paths":"\/apisix\/batch-requests"},{"handler":"function:
 
0x7f0d7b292820","methods":["POST"],"paths":"\/apisix\/plugin\/wolf-rbac\/login"},{"handler":"function:
 
0x7f0d7b292948","methods":["PUT"],"paths":"\/apisix\/plugin\/wolf-rbac\/change_pwd"},{"handler":"function:
 
0x7f0d7b292aa0","methods":["GET"],"paths":"\/apisix\/plugin\/wolf-rbac\/user_info"},{"handler":"function:
 
0x7f0d7b2931c8","methods":["GET"],"paths":"\/apisix\/plugin\/jwt\/sign"},{"handler":"function:
 
0x7f0d7b293918","methods":["GET"],"paths":"\/apisix\/status"},{"handler":"function:
 
0x7f0d7b294050","methods":["GET"],"paths":"\/apisix\/prometheus\/metrics"},{"priority":0,"methods":["GET","POST"],"handler":"function:
 0x7f0d7b294940","paths":"\/*"}], client: <mylaptopip>, server: , request: "GET 
/ HTTP/1.1", host: "<my-server>"
   2020/10/29 06:46:33 [info] 36#36: *954 [lua] radixtree.lua:307: 
pre_insert_route(): path: /apisix/batch-requests operator: =, client: 
<mylaptopip>, server: , request: "GET / HTTP/1.1", host: "<my-server>"
   2020/10/29 06:46:33 [info] 36#36: *954 [lua] radixtree.lua:307: 
pre_insert_route(): path: /apisix/plugin/wolf-rbac/login operator: =, client: 
<mylaptopip>, server: , request: "GET / HTTP/1.1", host: "<my-server>"
   2020/10/29 06:46:33 [info] 36#36: *954 [lua] radixtree.lua:307: 
pre_insert_route(): path: /apisix/plugin/wolf-rbac/change_pwd operator: =, 
client: <mylaptopip>, server: , request: "GET / HTTP/1.1", host: "<my-server>"
   2020/10/29 06:46:33 [info] 36#36: *954 [lua] radixtree.lua:307: 
pre_insert_route(): path: /apisix/plugin/wolf-rbac/user_info operator: =, 
client: <mylaptopip>, server: , request: "GET / HTTP/1.1", host: "<my-server>"
   2020/10/29 06:46:33 [info] 36#36: *954 [lua] radixtree.lua:307: 
pre_insert_route(): path: /apisix/plugin/jwt/sign operator: =, client: 
<mylaptopip>, server: , request: "GET / HTTP/1.1", host: "<my-server>"
   2020/10/29 06:46:33 [info] 36#36: *954 [lua] radixtree.lua:307: 
pre_insert_route(): path: /apisix/status operator: =, client: <mylaptopip>, 
server: , request: "GET / HTTP/1.1", host: "<my-server>"
   2020/10/29 06:46:33 [info] 36#36: *954 [lua] radixtree.lua:307: 
pre_insert_route(): path: /apisix/prometheus/metrics operator: =, client: 
<mylaptopip>, server: , request: "GET / HTTP/1.1", host: "<my-server>"
   2020/10/29 06:46:33 [info] 36#36: *954 [lua] radixtree.lua:307: 
pre_insert_route(): path: / operator: <=, client: <mylaptopip>, server: , 
request: "GET / HTTP/1.1", host: "<my-server>"
   2020/10/29 06:46:33 [info] 36#36: *954 [lua] radixtree.lua:179: 
insert_route(): insert route path: / dataprt: 1, client: <mylaptopip>, server: 
, request: "GET / HTTP/1.1", host: "<my-server>"
   2020/10/29 06:46:33 [info] 36#36: *954 [lua] init.lua:338: 
http_access_phase(): matched route: 
{"value":{"priority":0,"methods":["GET","POST"],"uri":"\/*","id":"bfe058f5-f3c2-426f-820e-dc6535a51777","service_protocol":"grpc","service_id":"66ebf6d4-5a75-44c9-b25c-e3e562b88525"},"clean_handlers":{},"createdIndex":31,"has_domain":false,"key":"\/apisix\/routes\/bfe058f5-f3c2-426f-820e-dc6535a51777","modifiedIndex":31},
 client: <mylaptopip>, server: , request: "GET / HTTP/1.1", host: "<my-server>"
   2020/10/29 06:46:33 [info] 36#36: *954 [lua] init.lua:489: 
grpc_access_phase(): route: 
{"value":{"priority":0,"methods":["GET","POST"],"uri":"\/*","id":"bfe058f5-f3c2-426f-820e-dc6535a51777","service_protocol":"grpc","service_id":"66ebf6d4-5a75-44c9-b25c-e3e562b88525"},"clean_handlers":{},"createdIndex":31,"has_domain":false,"key":"\/apisix\/routes\/bfe058f5-f3c2-426f-820e-dc6535a51777","modifiedIndex":31},
 client: <mylaptopip>, server: , request: "GET / HTTP/1.1", host: "<my-server>"
   2020/10/29 06:46:33 [info] 36#36: *954 [lua] plugin.lua:332: 
merge_service_route(): service conf: 
{"value":{"upstream":{"nodes":[{"host":"some-k8s-svc.default.svc.cluster.local","port":5202,"weight":1}],"hash_on":"vars","type":"roundrobin"},"id":"66ebf6d4-5a75-44c9-b25c-e3e562b88525"},"clean_handlers":{},"createdIndex":28,"has_domain":true,"key":"\/apisix\/services\/66ebf6d4-5a75-44c9-b25c-e3e562b88525","modifiedIndex":28},
 client: <mylaptopip>, server: , request: "GET / HTTP/1.1", host: "<my-server>"
   2020/10/29 06:46:33 [info] 36#36: *954 [lua] plugin.lua:333: 
merge_service_route():   route conf: 
{"value":{"priority":0,"methods":["GET","POST"],"uri":"\/*","id":"bfe058f5-f3c2-426f-820e-dc6535a51777","service_protocol":"grpc","service_id":"66ebf6d4-5a75-44c9-b25c-e3e562b88525"},"clean_handlers":{},"createdIndex":31,"has_domain":false,"key":"\/apisix\/routes\/bfe058f5-f3c2-426f-820e-dc6535a51777","modifiedIndex":31},
 client: <mylaptopip>, server: , request: "GET / HTTP/1.1", host: "<my-server>"
   2020/10/29 06:46:33 [info] 36#36: *954 [lua] balancer.lua:160: 
pick_server(): route: 
{"value":{"service_id":"66ebf6d4-5a75-44c9-b25c-e3e562b88525","upstream":{"nodes":[{"host":"some-k8s-svc.default.svc.cluster.local","port":5202,"weight":1}],"hash_on":"vars","type":"roundrobin"},"id":"bfe058f5-f3c2-426f-820e-dc6535a51777"},"clean_handlers":{},"modifiedIndex":28,"createdIndex":28,"has_domain":true,"key":"\/apisix\/services\/66ebf6d4-5a75-44c9-b25c-e3e562b88525","_cache_ver":{"value":{"upstream":{"hash_on":"vars","nodes":[{"host":"some-k8s-svc.default.svc.cluster.local","port":5202,"weight":1}],"type":"roundrobin"},"id":"66ebf6d4-5a75-44c9-b25c-e3e562b88525"},"clean_handlers":{},"createdIndex":28,"has_domain":true,"key":"\/apisix\/services\/66ebf6d4-5a75-44c9-b25c-e3e562b88525","modifiedIndex":28}}
 while connecting to upstream, client: <mylaptopip>, server: , request: "GET / 
HTTP/1.1", host: "<my-server>"
   2020/10/29 06:46:33 [info] 36#36: *954 [lua] balancer.lua:161: 
pick_server(): ctx: 
{"conf_id":"66ebf6d4-5a75-44c9-b25c-e3e562b88525","var":{"host":"<my-server>","request_method":"GET","uri":"\/","remote_addr":"<mylaptopip>","_request":"cdata<void
 *>: 
0x55a409c06330"},"upstream_version":28,"upstream_key":"roundrobin#route_bfe058f5-f3c2-426f-820e-dc6535a51777","upstream_healthcheck_parent":"table:
 
0x7f0d7b2995c0","conf_type":"service","conf_version":28,"upstream_conf":"table: 
0x7f0d7b299750","matched_route":{"value":{"service_id":"66ebf6d4-5a75-44c9-b25c-e3e562b88525","upstream":{"nodes":[{"host":"some-k8s-svc.default.svc.cluster.local","port":5202,"weight":1}],"hash_on":"vars","type":"roundrobin"},"id":"bfe058f5-f3c2-426f-820e-dc6535a51777"},"clean_handlers":{},"modifiedIndex":28,"createdIndex":28,"has_domain":true,"key":"\/apisix\/services\/66ebf6d4-5a75-44c9-b25c-e3e562b88525","_cache_ver":{"value":{"upstream":{"hash_on":"vars","nodes":[{"host":"some-k8s-svc.default.svc.cluster.l
 
ocal","port":5202,"weight":1}],"type":"roundrobin"},"id":"66ebf6d4-5a75-44c9-b25c-e3e562b88525"},"clean_handlers":{},"createdIndex":28,"has_domain":true,"key":"\/apisix\/services\/66ebf6d4-5a75-44c9-b25c-e3e562b88525","modifiedIndex":28}},"plugins":{}}
 while connecting to upstream, client: <mylaptopip>, server: , request: "GET / 
HTTP/1.1", host: "<my-server>"
   2020/10/29 06:46:33 [info] 36#36: *954 [lua] balancer.lua:264: 
load_balancer(): proxy request to some-k8s-svc.default.svc.cluster.local:5202 
while connecting to upstream, client: <mylaptopip>, server: , request: "GET / 
HTTP/1.1", host: "<my-server>"
   2020/10/29 06:46:33 [error] 36#36: *954 [lua] balancer.lua:267: 
load_balancer(): failed to set server peer 
[some-k8s-svc.default.svc.cluster.local:5202] err: no host allowed while 
connecting to upstream, client: <mylaptopip>, server: , request: "GET / 
HTTP/1.1", host: "<my-server>"
   2020/10/29 06:46:33 [info] 36#36: *954 client <mylaptopip> closed keepalive 
connection
   ```
   
   repeated lines(phpadmin attack) removed, and real server's ip are replaced, 
any other lines are untouched
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to