I hate coredns. Everything running inside of a kubernetes cluster should just be querying the kubernetes endpoints api for these IPs directly and using the node dnsservers for external hosts.
I hate coredns. Everything running inside of a kubernetes cluster should just be querying the kubernetes endpoints api for these IPs directly and using the node dnsservers for external hosts.
Wouldn't this put a huge load on the apiserver? Not to mention it's incompatible with software not designed for Kubernetes.
Isn't DNS built explicitly for this?
This might fix problems accidentally, at the cost of k8 dependency.
* dnsPolicy: Default
* enableServiceLinks: true (the default)
Then you can use MYDATABASENAME_SERVICE_HOST from the environment and there is no CoreDNS in the path at all.
Unless you want to also get rid of kube-proxy, in addition to CoreDNS; in that case you don't get ClusterIPs for services.
To be honest kube-proxy and CoreDNS are probably the only components I haven't had problems with on my cluster.