运行kubeadm join 命令后如下:
[preflight] Running pre-flight checks.
[WARNING FileExisting-crictl]: crictl not found in system path
Suggestion: go get github.com/kubernetes-incubator/cri-tools/cmd/crictl
[preflight] Starting the kubelet service
[discovery] Trying to connect to API Server “XXXX”
[discovery] Created cluster-info discovery client, requesting info from “https://XXXX:6443”
[discovery] Requesting info from “https://1XXXX:6443” again to validate TLS against the pinned public key
[discovery] Cluster info signature and contents are valid and TLS certificate validates against pinned roots, will use API Server “XXXX:6443”
[discovery] Successfully established connection with API Server “192.168.1.13:6443”
This node has joined the cluster:
Run ‘kubectl get nodes’ on the master to see this node join the cluster.
在master上运行kubectl get nodes 后获取不到子节点且使用kubectl get pods -n kube-system -o wide获取的服务状态很多变成pending了。