搭建环境之前,准备两台虚拟机,先做检查
IP | 角色 | 主要组件 |
---|---|---|
192.168.218.10 | master:kubernetes-master | kube-apiserver,kube-controller-manager,kube-scheduler,kubelet,etcd |
192.168.218.20 | node01:kubernetes-node | docker,kubelet,kube-proxy,flannel |
编辑文件/etc/hosts; 添加主备节点信息
关闭防火墙 systemctl status firewalld 可查看
systemctl stop firewalld.service
systemctl disable firewalld.service
关闭SELinux; getenforce可查看
sed -i 's