1. Highly available k8s cluster architecture (multi-master)
2. Installation hardware requirements
One or more machines, operating system CentOS7.x-86_x64
Hardware configuration: 2GB or more RAM, 2 CPUs or more, hard disk 30GB or more
Note:
This is a teaching environment, so three virtual machines are used for simulation.
3. Deployment planning
4. Preparation before deployment
(1). Turn off the firewall
systemctl stop firewalld
systemctl disable firewalld
(2). Close selinux
# 永久
sed -i 's/enforcing/disabled/' /etc/selinux/config
# 临时
setenforce 0
(3). Close swap
swapoff -a # 临时
sed -ri 's/.*swap.*/#&/' /etc/fstab # 永久
(4). Set the host name according to the plan
hostnamectl set-hostname <hostname&g