vi /etc/hosts
... 추가 ...
192.168.101.201 m1.lab1.px.local
192.168.101.202 w1.lab1.px.local
192.168.101.203 w2.lab1.px.local
192.168.101.204 w3.lab1.px.local
dnf update -y
reboot
dnf install kernel-devel-$(uname -r) kernel-headers-$(uname -r)
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf install dnf-utils net-tools bind-utils iproute-tc wget curl* \
dnf-plugins-core device-mapper-persistent-data lvm2
firewall-cmd --add-port={80,443,6443,2379,2380,10250,10251,10252,30000-32767}/tcp \
--permanent && firewall-cmd --reload
systemctl stop firewalld && systemctl disable firewalld
swapon -s
swapoff -a
sed -i '/ swap / s/^/#/' /etc/fstab
sestatus
vi /etc/sysconfig/selinux
...
SELINUX=disabled
...
reboot
sestatus
modprobe overlay
modprobe br_netfilter
cat <<EOF | sudo tee /etc/modules-load.d/k8s.conf
overlay
br_netfilter
EOF
cat <<EOF | sudo tee /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-ip6tables=1
net.bridge.bridge-nf-call-iptables=1
net.ipv4.ip_forward=1
EOF
sysctl --system