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节点的内存给的太小了,因为关闭了交换分区,所以内存尽量大些

猜你喜欢

转载自blog.csdn.net/qq_37194598/article/details/84848927