K8s pod内访问svc IP服务不通
在pod内访问服务名不通的问题?
Flannel网络,打开网卡的混合模式:
ip link set flannel.1 promisc on
ip link set cin0 promisc on
同一台主机上的pod内访问同一台Node上svc的ip不通?
解决方法:
[root@k8s-int-node4 ~]# cat /proc/sys/net/bridge/bridge-nf-call-iptables
0
[root@k8s-int-node4 ~]# echo '1' > /proc/sys/net/bridge/bridge-nf-call-iptables
[root@k8s-int-node4 ~]# cat /proc/sys/net/bridge/bridge-nf-call-iptables
1
[root@k8s-int-node4 ~]#
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.