Cento7.6 install kubernetes1.14.1
1. Preparation: two virtual machines maste.lab.example.com 192.168.125.142 2cpu 2G 60G
Node.lab.example.com 192.168.125.141 2cpu 4G 60G
Update software packages and sources
Update package yum update-y
New source: cd / etc/yum.repos.d
Mv CentOS-Base.repo CentOS-Base.repo.bak
Curl-o CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
Sed-I's etc/yum.repos.d/CentOS-Base.repo gpgcheckmarks 1 max gpgcheckboxes 0max
Curl-o docker-ce.repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
Cat / etc/sysctl.conf
Sysctl-p
Install docker
Yum install docker-ce
Set up the image accelerator (here I use my own Aliyun image acceleration, which is written according to my actual situation)
Mkdir-p / etc/docker
Tee / etc/docker/daemon.json