Discovering Services using kube-dns/CoreDNS

While Kubernetes Components constitutes the essential parts of the Kubernetes platform, there are also add-ons, which extend the core functionalities. They are optional, but some are highly recommended and are often included by default. In fact, the Web UI Dashboard is an example of an add-on.

Another such add-on is kube-dns, a DNS server which is used by Pods to resolve hostnames.

CoreDNS is an alternative DNS server which reached General Availability (GA) status in Kubernetes 1.11, replacing the existing kube-dns addon as the default. For our purposes, they achieve the same results.

This DNS server watches the Kubernetes API for new Services. When a new Service is created, a DNS record is created ...

Get Building Enterprise JavaScript Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.