skip to content
Alvin Lucillo

Accessing pod via DNS

/ 1 min read

If you’re within the cluster, you can access the IP via DNS with this format: pod-ip-replacing-dot-with-hypens.servicename.namespace.svc.cluster.local (e.g., 10-244-1-23.service1.default.svc.cluster.local). This is using the service-scoped DNS A record of a pod.