Kubernetes集群搭建过程中遇到的问题

如果你在配置的时候,在其他配置都正确的时候,还是一直有各种问题例如
Unable to connect to the server: net/http: TLS handshake timeout
nable to write event: 'Patch https://192.168.126.135:6443/api/v1/namespaces/kube-system/events/kube-apiserver-master.com.156bcf69e6676f43: net/http: TLS handshake timeout' (may retry after sleeping)
Attempting to register node master.com
Nov 30 14:31:30 master kubelet: E1130 14:31:30.753036 1193 kubelet_node_status.go:103] Unable to register node "master.com" with API server: Post https://192.168.126.135:6443/api/v1/nodes: dial tcp 192.168.126.135:6443: connect: connection refused
加入节点
[discovery] Requesting info from "https://192.168.126.135:6443" again to validate TLS against the pinned public key
[discovery] Failed to request cluster info, will try again: [Get https://192.168.126.135:6443/api/v1/namespaces/kube-public/configmaps/cluster-info: net/http: TLS handshake timeout]
 

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

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 10
    评论
评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值