kubenetes kubeadm安装flannel插件pod网络不通 2021.7.28

[root@rstx-242 ~]# kubectl get pod  -o wide
NAME             READY   STATUS    RESTARTS   AGE   IP           NODE       NOMINATED NODE   READINESS GATES
nginx-ds-ksr4b   1/1     Running   0          18m   172.7.2.2    rstx-244   <none>           <none>
nginx-ds-rfpjv   1/1     Running   0          18m   172.7.1.22   rstx-243   <none>           <none>
[root@rstx-242 ~]# ping 172.7.2.2
PING 172.7.2.2 (172.7.2.2) 56(84) bytes of data.
^C
--- 172.7.2.2 ping statistics ---
30 packets transmitted, 0 received, 100% packet loss, time 28999ms


经检查是FORWARD链入口没有打开

iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F
iptables -L -n

kubenetes kubeadm安装flannel插件pod网络不通 2021.7.28

上一篇:做好顶层设计 建设绿色智慧交通系统


下一篇:通过filter对ServletRequest做代理转发,实现类似于反向代理的功能,ServletRequest to HttpRequest