alibaba / kt-connect

A toolkit for Integrating with your kubernetes dev environment more efficiently
https://alibaba.github.io/kt-connect/#/
GNU General Public License v3.0
1.51k stars 230 forks source link

在wsl 使用ktctl 连接 k8s 集群时异常,错误信息 ERR Exit: create tun: no such file or directory #366

Open mfacious opened 2 years ago

mfacious commented 2 years ago

Describe the bug 在wsl 使用ktctl 连接 k8s 集群时异常,错误信息 ERR Exit: create tun: no such file or directory

Log root@DESKTOP-BHGB8LJ:~# sudo ktctl connect --shareShadow --debug 3:12PM DBG Background task log to /tmp/kt-2448002793 3:12PM INF Using cluster context 298890363835090561-...................................................................................... (kubernetes) 3:12PM INF KtConnect 0.3.6 start at 88 (linux amd64) 3:12PM DBG Rectify pod kt-rectifier-dqlbv created 3:12PM INF Fetching cluster time ... 3:12PM INF Fetching cluster time ... 3:12PM DBG Execute command [date +%s] in kt-rectifier-dqlbv:standalone 3:12PM DBG Time difference is -3 3:12PM INF Using tun2socks mode 3:12PM INF Found shadow daemon pod, reuse it 3:12PM DBG Using port 44565 3:12PM DBG Request port forward pod:22 -> local:44565 via https://1*************:6443 3:12PM DBG Find 2 kt pods 3:12PM INF Port forward local:44565 -> pod kt-connect-shadow-daemon:22 established 3:12PM INF Socks proxy established 3:12PM ERR Exit: create tun: no such file or directory 3:12PM DBG Cleaning workspace 3:12PM INF Removed pid file /root/.kt/pid/connect-88.pid 3:12PM DBG Received event "/root/.kt/pid/connect-88.pid": REMOVE 3:12PM INF Pid file was removed 3:12PM INF Removed key file /root/.kt/key/kt-connect-shadow-daemon.key 3:12PM DBG Dropping hosts records ... 3:12PM INF Pod kt-connect-shadow-daemon has 2 refs, decrease to 1 root@DESKTOP-BHGB8LJ:~# Environment (please complete the following information):

Additional context Add any other context about the problem here.