解决 执行kubectl xxx xxx 出现 Unable to connect to the server: net/http: TLS handshake timeout 问题

我在执行kubectl get nodes 查看节点 结果等了好久都不行 还出了问题,报错信息如下:
Unable to connect to the server: net/http: TLS handshake timeout

后来 我在一篇博客中看到 才意识到可能是我虚拟机的内存分小了,以前我给我的虚拟机分了3g 那时候没问题 后来因为电脑上内存一共只有8g 之后 就分了1.5g

当我把内存由1.5g改为2.5g之后 ,此时再执行 kubectl get nodes 就没问题了。


这些问题的出现都由可能是自己的master节点的内存给的太小了,因为关闭了交换分区,所以内存尽量大些


参考博文:https://blog.csdn.net/qq_37194598/article/details/84848927
发布了26 篇原创文章 · 获赞 10 · 访问量 6511

猜你喜欢

转载自blog.csdn.net/qq_40806970/article/details/99296983