K8s use flannel network, through the domain name can not access the external network

K8s use flannel network, through the domain name can not access the external network, can ping 通 kube-dns, and kube-dns pod internal can also access the external domain name 2017-02-17 add comment share it

  • Weibo
  • QZONE
  • Micro letter

Did not find the relevant results

    Invited:

    Lit_aaron

    We agreed from:



    Can you make it clear?
    Is in the pod where the container, or pod where the host can not visit the domain through the domain which pod where the container can not access outside the domain name.

    Suggested to gradually troubleshoot the problem from the description of kube-dns where the pod internal domain name can access the external network, it is estimated that other pod containers can not access the external domain name.
    If this is the case, the establishment of a kube-dns configuration on the host domain name resolution configuration is incorrect (/etc/reslov.conf) caused.

    1, first look at the host, pod container network access is interlinked.
    2, in any host host to visit outside the domain name, to confirm whether it can, if not, modify the corresponding host domain name resolution configuration
    3, in other host (non-kube-dns) pod container access to external domain name, you can install nslookup dig and other tools to gradually test to see where the domain name resolution on the server.

    Nslookup

    Server $ hostdnsserver
    See if it can be resolved.

    Heads up! This alert needs your attention, but it's not super important.