我一个master 2个node,看不到node通过kubectl get nodes


我1台master,2台node已经启动apiserver服务和node的kubelet服务,现在
master上可一个get csr 并approve添加上,但是添加之后看不到nodes
[root@c7test_master kubernetes]# kubectl get csr
NAME                                                   AGE       REQUESTOR           CONDITION
node-csr-kFTXK0rd8YDqLIpOJjnaK9MviixmdF2GryBOI66VtHI   21m       kubelet-bootstrap   Approved
node-csr-p4ZuR-C5f3AE_0GGzebYt2bnAeThxZJbgIfVdtxHKQY   21m       kubelet-bootstrap   Approved
[root@c7test_master kubernetes]# kubectl get nodes
No resources found.
[root@c7test_master kubernetes]# kubectl version
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.0", GitCommit:"925c127ec6b946659ad0fd596fa959be43f0cc05", GitTreeState:"clean", BuildDate:"2017-12-15T21:07:38Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.1", GitCommit:"3a1c9449a956b6026f075fa3134ff92f7d55f812", GitTreeState:"clean", BuildDate:"2018-01-03T22:18:41Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
[root@c7test_master kubernetes]# 
已邀请:

zhangbei59

赞同来自:


apiversion是 v1beta1,版本是1.9的k8s

要回复问题请先登录注册