k8s集群搭建后。重新做了docker私库。需要将集群的节点修改docker配置,添加docker私库地址,重启docker。
1. 将vonedaonode1踢出集群
# kubectl drain vonedaonode1
2. 查看
# kubectl get nodes NAME STATUS ROLES AGE VERSION vonedaomaster1 Ready master 2d v1.17.3 vonedaonode1 Ready,SchedulingDisabled <none> 47h v1.17.3 vonedaonode3 Ready <none> 46h v1.17.3
3. 将vonedaonode1进行docker配置和重启
4.将vonedaonode1加入集群
# kubectl uncordon vonedaonode1
node/vonedaonode1 uncordoned
5.查看
# kubectl get nodes NAME STATUS ROLES AGE VERSION vonedaomaster1 Ready master 2d v1.17.3 vonedaonode1 Ready <none> 47h v1.17.3 vonedaonode3 Ready <none> 46h v1.17.3