Troubleshooting Service Discovery
Learn how to troubleshoot service discovery.
We'll cover the following...
Kubernetes DNS components
Kubernetes makes service registration and service discovery automatic. However, a lot is happening behind the scenes, and knowing how to inspect and restart things is helpful.
As mentioned, Kubernetes uses the cluster DNS as its built-in service registry. This runs as one or more managed Pods with a Service object providing a stable endpoint. The important components are:
Pods: Managed by the coredns Deployment
Service: A
ClusterIP
Service called kube-dns listening on port53
TCP/UDPEndpointSlice objects: Names pre-fixed with kube-dns ...