Kubernetes

·

1 min read

How pods talk to each other

/etc/resolv.conf file


DNS server in K8s

Core DNS

kubectl get pod -n kube-system

#there will be 2 coredns pods

Whenever a SERVICE is created in the cluster, CoreDNS creates the record for that service & the record maps the name to the service to that IP address.

Any pod in the cluster can now reach the service through it's name