1、执行如下命令

ethtool -K flannel.1 tx-checksum-ip-generic off
[root@master01 ~]# ethtool -K flannel.1 tx-checksum-ip-generic off
Actual changes:
tx-checksumming: off
        tx-checksum-ip-generic: off
tcp-segmentation-offload: off
        tx-tcp-segmentation: off [requested on]
        tx-tcp-ecn-segmentation: off [requested on]
        tx-tcp6-segmentation: off [requested on]
        tx-tcp-mangleid-segmentation: off [requested on]
udp-fragmentation-offload: off [requested on]

2、执行结束后访问测试
3、如果还是不行,需要将svc先delet后在apply,重新发布

参考地址:

https://blog.csdn.net/comeyes/article/details/106123409

https://t.du9l.com/2020/03/kubernetes-flannel-udp-packets-dropped-for-wrong-checksum-workaround/

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐