My question is, why we wrote the domain name of Kube-DNS in the code? Isn't
it better to read domain name from the service, or just use the hostname?
In our scenario, we run spark on Kata-like containers, and found the code
had written the Kube-DNS domain. If Kube-DNS is not configured in
environment, tasks would run failed.
Besides, kube-dns is just a plugin for k8s, not a required component for k8s. We can use better DNS services without necessarily using this.