Issue:
Local domains are not resolved inside the Kubernetes pods.
Error: Unknown host
Resolution:
Adding the local DNS server(s) to CoreDNS.
The CoreDNS addon for MicroK8s handles address resolution services to Kubernetes.
By default, it points to Google’s 8.8.8.8 and 8.8.4.4 servers for resolving addresses.
This can be changed by running the command:
microk8s kubectl -n kube-system edit configmap/coredns
This will open the vim editor, where you can edit the configuration.
Comments
0 comments