添加node成功,但是在master运行kubectl get nodes 看不到子节点

来源:1-7 安装dashboard和heapster并验证集群安装结果

春松

2018-10-05

运行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:

  • Certificate signing request was sent to master and a response
    was received.
  • The Kubelet was informed of the new secure connection details.

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了。

写回答

3回答

遇见未来的你

2019-06-18

网络插件安装了吗?

0
0

慕粉2143548772

2019-05-14

你解决了吗?我跟你一样的问题

0
0

春松

提问者

2018-10-05

修改hostsname 及hosts文件

0
1
喵的薛定谔i
我修改了hostname以及hosts文件仍然没有解决
2018-10-09
共1条回复

Kubernetes实战 高可用集群搭建,配置,运维与应用

以生产为目标,原理+操作, Kubernetes结合典型云原生应用

794 学习 · 196 问题

查看课程