This deploys CoreDNS to supply address resolution services to
This service is commonly required by other addons, so it is
recommended that you enable it.
microk8s enable dns
By default it points to Google’s
18.104.22.168 servers for resolving
addresses. This can be changed when you enable the addon, for example:
microk8s enable dns:22.214.171.124
(for multiple DNS addresses, a comma-separated list should be used)
The forward dns servers can also be altered after enabling the addon
by running the command:
microk8s kubectl -n kube-system edit configmap/coredns
This will invoke the
vim editor so that you can alter the configuration.
The addon can be disabled at any time:
microk8s disable dns
…but bear in mind this could have implications for services and pods which
may be relying on it.
Last updated 30 days ago. Help improve this document in the forum.