集群地址
master :192.168.1.101
node1 : 192.168.1.102
node2. : 192.168.1.103
配置互信,配置hosts 安装ansble
master node1 node2 操作
安装docker
94 ansible master -m shell -a 'apt-get remove docker docker-engine docker.io containerd runc'
95 ansible master -m shell -a 'apt update'
96 ansible master -m shell -a 'apt-get install ca-certificates curl gnupg lsb-release'
97 ansible master -m shell -a 'curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -'
98 ansible master -m shell -a 'add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"'
99 ansible master -m shell -a 'apt-get install docker-ce docker-ce-cli containerd.io'
100 apt-get install docker-ce docker-ce-cli containerd.io
配置内核参数
115 ca