节点规划
k8s-m :192.168.2.50
k8s-n1 :192.168.2.51
k8s-n2 :192.168.2.52
准备YUM源
curl http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
安装docker依赖
yum install -y yum-utils device-mapper-persistent-data lvm2 audit-libs-python policycoreutils-python
解压k8s压缩包
cd /opt
tar xf *
cd pkg
![在这里插入图片描述](https://img-blog.csdnimg.cn/20201023164233827.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2JqZ2FvY3A=,size_16,color_FFFFFF,t_70#pic_center)
安装
上传docker-k8s.zip软件到各节点/opt,并解压
tar xf *
cd /opt/docker-k8s
yum -y localinstall *.rpm
检查docker版本
![在这里插入图片描述](https://img-blog.csdnimg.cn/20201023164321506.png#pic_center)
master端软件安装
上传k8s-master.zip到/opt,并解压
cd /opt