Forum Navigation
You need to log in to create posts and topics.

error execution phase preflight: [preflight] Some fatal errors occurred

Problem

Kubeadm init reports the following error

error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR FileContent–proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables contents are not set to 1

Solution

Install Kernel modules

sudo modprobe overlay
sudo modprobe br_netfilter

configure system parameters properly

cat <<EOF | sudo tee /etc/sysctl.d/99-kubernetes-cri.conf
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-ip6tables = 1
EOF

Apply settings

sudo sysctl –system