error execution phase preflight: [preflight] Some fatal errors occurred
Quote from moshe on 23/10/2020, 9:46 pmProblem
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 1Solution
Install Kernel modules
sudo modprobe overlay
sudo modprobe br_netfilterconfigure 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
EOFApply settings
sudo sysctl –system
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