kt-connect
kt-connect copied to clipboard
ktctl connect curl的时候报错:Recv failure: Connection reset by peer
ktctl connect -n xd-devkit --dnsMode hosts --debug 6:31PM DBG Background task log to /tmp/kt-837578762 6:31PM INF Using cluster context xd-devkit (k8s-cluster) 6:31PM INF KtConnect dev start at 6585 (linux amd64) 6:31PM DBG Rectify pod kt-rectifier-wmftd created 6:31PM INF Fetching cluster time ...
6:32PM DBG Execute command [date +%s] in kt-rectifier-wmftd:standalone 6:32PM DBG No time difference 6:32PM INF Using tun2socks mode 6:32PM DBG Found local domains: baidu.com,epc.duxiaoman.com 6:32PM DBG Find 1 kt pods 6:32PM DBG Private Key generated 6:32PM DBG Public key generated 6:32PM INF Successful create config map kt-connect-shadow-noseu 6:32PM INF Deploying shadow pod kt-connect-shadow-noseu in namespace xd-devkit 6:32PM INF Waiting for pod kt-connect-shadow-noseu ... 6:32PM INF Pod kt-connect-shadow-noseu is ready 6:32PM DBG Using port 8482 6:32PM DBG Request port forward pod:22 -> local:8482 via https://10.157.25.243:6443 6:32PM INF Port forward local:8482 -> pod kt-connect-shadow-noseu:22 established 6:32PM INF Socks proxy established 6:32PM INF Tun device kt0 is ready 6:32PM DBG Found 8 IPs 6:32PM DBG Service CIDR are: [10.69.0.0/16] 6:32PM DBG Found 11 IPs 6:32PM DBG Pod CIDR are: [172.21.0.0/16] 6:32PM DBG Using cluster IP 10.157.25.243 6:32PM DBG Cluster CIDR are: [10.69.0.0/16 172.21.0.0/16] 6:32PM DBG Task /sbin/ip with args [ip link set dev kt0 up] 6:32PM INF Adding route to 10.69.0.0/16 6:32PM DBG Task /sbin/ip with args [ip route add 10.69.0.0/16 dev kt0] 6:32PM INF Adding route to 172.21.0.0/16 6:32PM DBG Task /sbin/ip with args [ip route add 172.21.0.0/16 dev kt0] 6:32PM DBG Task /sbin/ip with args [ip route show] 6:32PM INF Route to tun device completed 6:32PM INF Setting up dns in hosts mode 6:32PM DBG Search service in xd-devkit namespace ... 6:32PM DBG Service found: kafka-svc.xd-devkit 10.69.128.59 6:32PM DBG Service found: loan2-txn-svc.xd-devkit 10.69.125.41 6:32PM DBG Service found: mysql-case-svc.xd-devkit 10.69.57.227 6:32PM DBG Service found: mysql-ignore-svc.xd-devkit 10.69.191.153 6:32PM DBG Service found: redis-auth-svc.xd-devkit 10.69.82.68 6:32PM DBG Service found: redis-svc.xd-devkit 10.69.209.46 6:32PM DBG Service found: xd-apollo-svc.xd-devkit 10.69.143.9 6:32PM DBG Service found: xloan-svc.xd-devkit 10.69.27.192 6:32PM DBG Dump hosts successful 6:32PM INF --------------------------------------------------------------- 6:32PM INF All looks good, now you can access to resources in the kubernetes cluster 6:32PM INF --------------------------------------------------------------- 6:32PM DBG Service loan2-txn-svc added 6:32PM DBG Service xd-apollo-svc added 6:32PM DBG Service kafka-svc added 6:32PM DBG Service redis-auth-svc added 6:32PM DBG Service xloan-svc added 6:32PM DBG Service redis-svc added 6:32PM DBG Service mysql-ignore-svc added 6:32PM DBG Service mysql-case-svc added
ktctl connect 没有任何报错,但是curl http://ClusterIP:port 的时候报错:curl: (56) Recv failure: Connection reset by peer
求大神帮忙看看是怎么回事