CH01_安装方式B_kubeadm_04_worker_node_20190917

1.node01、node02节点加入集群

  1. 确认非kubernetes指定的网卡已关闭
    [root@k8s-node02 k8s-install]# ifdown ens33
    [root@k8s-node02 k8s-install]# ip a
  2. 检查hostname
    [root@k8s-node02 k8s-install]# hostname
  3. 检查hosts,须包含本主机
    [root@k8s-node02 k8s-install]# cat /etc/hosts
  4. 导入flannel镜像
    [root@k8s-node02 k8s-install]# docker load -i /root/k8s-install/quay.io.coreos.flannel_v0.11.0-amd64.tar
  5. From kubeadm-init.log,加入集群
    [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-ha-master01 k8s_install]# kubectl get node
[root@k8s-ha-master01 k8s_install]# kubectl get pod -n kube-system [-o wide] [-w] 

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

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

 

你可能感兴趣的:(CH01_安装方式B_kubeadm_04_worker_node_20190917)