Open AntonSmolkov opened 4 years ago
BTW, cloud-config described here overrides the whole resolv.conf file and leaves only "search" parameter.
So, AFAIK, the only valid workaround by this time:
write_files:
- container: network
content: "search yourdomain.local\n"
owner: root
path: /etc/resolv.conf.head
permissions: "0444"
RancherOS Version: (ros os version) 1.5.5 Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.) VM and docker-machine
"search" parameter just doesn't appear in /etc/resolv.conf file.
Because of this, deployed K8s pods don't have nods's domain in a list of search domains, and, therefore can't resolve short names from outside of the cluster.