kubeadm-ha
kubeadm-ha copied to clipboard
安装istio后pod重新初始化istio-init报错,节点的iptables模块未被加载
问题原因:iptables模块未被加载,所以我们可以尝试在所有k8s集群节点上加载iptables模块 [root@k8s-master kube]# modprobe ip_tables [root@k8s-master kube]# modprobe iptable_filter [root@k8s-master ~]# lsmod |grep -E "ip_tables|iptable_filter" iptable_filter 16384 0 ip_tables 28672 2 iptable_filter,iptable_nat
docker exec -it kubeadm-ha sh -c "ansible -i my-cluster/inventory.ini all -m shell -a 'modprobe ip_tables;modprobe iptable_filter'" docker exec -it kubeadm-ha sh -c "ansible -i my-cluster/inventory.ini all -m shell -a 'echo ip_tables >> /etc/modules-load.d/10-k8s-modules.conf;echo iptable_filter >> /etc/modules-load.d/10-k8s-modules.conf'"