Kubernetes:无法连接到服务器:net / http:TLS握手超时

时间:2020-05-20 15:22:59

标签: kubernetes

我的Kubernetes集群位于专用网络中,我已经完成本地隧道设置以通过堡垒主机进行连接。

已经创建了一个kubernetes服务帐户并获取了它的秘密,我创建了~/.kube/config文件,该文件是身份验证所必需的。

+ kubectl --context=default-context get pods -v=8 --kubeconfig=/.kube/config --insecure-skip-tls-verify=true
I0522 06:45:05.156725    1051 loader.go:375] Config loaded from file:  /.kube/config
debug1: Connection to port 8443 forwarding to XXXXXXXXXXX port 443 requested.
debug1: channel 5: new [direct-tcpip]
I0522 07:00:37.781155    1046 round_trippers.go:446] Response Status:  in 10000 milliseconds
I0522 07:00:37.781212    1046 round_trippers.go:449] Response Headers:
I0522 07:00:37.781262    1046 cached_discovery.go:121] skipped caching discovery info due to Get https://localhost:8443/api?timeout=32s: net/http: TLS handshake timeout
I0522 07:00:37.781342    1046 helpers.go:234] Connection error: Get https://localhost:8443/api?timeout=32s: net/http: TLS handshake timeout
F0522 07:00:37.781400    1046 helpers.go:115] Unable to connect to the server: net/http: TLS handshake timeout
debug1: channel 0: free: port listener, nchannels 6
debug1: channel 1: free: direct-tcpip: listening port 8443 for XXXXXXXXXXX port 443, connect from 127.0.0.1 port 50736 to 127.0.0.1 port 8443, nchannels 5
Killed by signal 1.

有人可以解释一下TLS握手超时的原因来开始调试。

0 个答案:

没有答案