kubelet does not have ClusterDNS IP configured in Microk8s
You have not specified how you deployed kube dns but with microk8s it’s recommended to use core dns. You should not deploy kube dns or core dns on your own; rather you need to enable dns using this command microk8s enable dns which would deploy core DNS and set up DNS.