We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
问题原因: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'"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题原因: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'"
The text was updated successfully, but these errors were encountered: