Search⌘ K

Troubleshooting Service Discovery

Explore how to diagnose and resolve service discovery issues in Kubernetes by inspecting CoreDNS components, verifying ClusterIP services, and using diagnostic tools. Learn to restart DNS Pods and verify cluster DNS functionality to ensure reliable application communication.

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 port 53 TCP/UDP

  • EndpointSlice objects: Names pre-fixed with kube-dns ...