Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装istio后pod重新初始化istio-init报错,节点的iptables模块未被加载 #149

Open
li-sen opened this issue Apr 11, 2024 · 0 comments

Comments

@li-sen
Copy link
Contributor

li-sen commented Apr 11, 2024

问题原因: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'"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant