March 2020
Intermediate to advanced
626 pages
14h 45m
English
Microservices are accessed through Kubernetes services, which have a permanent name such as kubernetes.default.svc.cluster.local for the Kubernetes service name in the default namespace. The default domain name of the cluster is cluster.local. Kubernetes runs its DNS server using the kube-dns service in the kube-system namespace.
In the VM that we are using, no route has been defined for the internal Kubernetes services, so we can't access the internal service name from the VM.
In the following steps, we will validate the domain name for the Kubernetes service:
$ dig +search +noall +answer kubernetes.default.svc.cluster.local
If the preceding command times ...
Read now
Unlock full access