出现问题如题,解决方法参考了
https://blog.heptio.com/configuring-your-linux-host-to-resolve-a-local-kubernetes-clusters-service-urls-a8c7bdb212a7
把 /etc/NetworkManager/NetworkManager.conf 中dns=dnsmasq注释掉,然后systemctl restart NetworkManager
之后我把k8s重置了,重新init后解决了问题