kubernetes_01_kubeadm方式安装_03_worker_node_20190917

1.node01、node02节点加入集群

1) 确认非kubernetes指定的网卡已关闭

[root@k8s-node02 k8s-install]# ip a

2) 检查hosts文件,须包含本主机

3) From kubeadm-init.log, 加入集群

4) pull flannel网络所需镜像

[root@k8s-node02 k8s-install]# docker pull quay.io/coreos/flannel:v0.11.0-amd64

5) 加入集群

[root@k8s-node01 ~]# kubeadm join 192.168.43.100:6444 --token abcdef.0123456789abcdef \

--discovery-token-ca-cert-hash sha256:59c2072cf06f03d0bf9992987416309146632f8124115ccf171eca1cbe87df39

2.在k8s-ha-master01上查看node和pod

[root@k8s-master01 k8s_documents]# kubectl get node

[root@k8s-master01 k8s_documents]# kubectl get pod -n kube-system [-o wide] [-w] //详细信息

3.重启该节点以确保flannel网络畅通

[root@k8s-node02 k8s-install]# reboot

发布了16 篇原创文章 · 获赞 0 · 访问量 73

猜你喜欢

转载自blog.csdn.net/wuyuezhengbian/article/details/104971643