I have a kubernetes cluster which has two worker nodes. I have pointed the coredns to forward any DNS requests that matches ".com" domain to a remote server.
.com:53 {
forward . <remote machine IP>
}
Let's say, pod-0 sits in worker-0 and pod-1 sits in worker-1.
When I uninstall pods and reinstall it, there are chances that pods gets assigned to different worker nodes.
Is there a possibility coredns will resolve the pod hostname to its worker node IP?
It would be really helpful if someone has an approach to handle this issue. Thanks in advance!