swapoff /dev/xxx # disable in /etc/fstab also systemctl mask --now firewalld echo br_netfilter >> /etc/modules-load.d/kubernetes.conf modprobe br_netfilter sysctl -w net.ipv4.ip_forwarding=1 | tee -a /etc/sysctl.conf sysctl -w net.bridge.bridge-nf-call-iptables=1 | tee -a /etc/sysctl.conf sysctl -w net.bridge.bridge-nf-call-ip6tables=1 | tee -a /etc/sysctl.conf cat <metallb-addresspool.yaml apiVersion: metallb.io/v1beta1 kind: IPAddressPool metadata: name: first-pool namespace: metallb-system spec: addresses: - 192.168.1.101-192.168.1.199 --- apiVersion: metallb.io/v1beta1 kind: L2Advertisement metadata: name: example namespace: metallb-system EOF kubectl apply -f metallb-addresspool.yaml