Unable to enter the kubernet. Server error: dialing error: dial tcp: lookup (node ​​hostname) to 168.63.129.16:53: no such host

We deployed the K8S cluster using the ACS engine in the Azure public cloud. We can create deployments and services, but when we enter pod using " kubectl exec -ti (file name) (command) , we get the following error,

Server error: dialing error: dial tcp: lookup (node ​​hostname) to 168.63.129.16:53: no such host

I looked all over the Internet and did everything I could to fix this problem, but so far no luck. The OS is Ubuntu, and 168.63.129.16 is the public IP address from Azure used for DNS. (See link below)

https://blogs.msdn.microsoft.com/mast/2015/05/18/what-is-the-ip-address-168-63-129-16/

I have already added the host entries / etc / hosts , and the entries in resolv.conf of the server master / node and nslookup allow this. I also tested by adding the - resolv-conf flag to kubelet, but still it fails. I hope someone from this community helps us solve this problem.

+4
source share
1 answer

Make sure that the node your module is running on can be resolved and reached from the API server container. If you added entries to /etc/resolv.confthe master node, make sure that they are visible in the APIserver container, and if not, restarting the API server may be useful

0
source

Source: https://habr.com/ru/post/1689409/


All Articles