Kubernetes is appending my own domain name to all requests in containers


#1

I set up Kubernetes (single node) with kubespray. It’s all up and working except for one thing. Any requests made from inside the container has my own fqdn appended to the request. For example, if I ping google.com from in the container, it pings google.com.example.com.

In my resolv.conf, it had the 3 search domains that are added by Kubespray, and then lan.example.com (my DHCP search domain set in my router), and example.com, which I don’t know why that’s getting put in. Removing the last search domain (example.com) makes the requests ping correctly.

Why is this happening and how can I fix it?