This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Namespace / Service | |
- A pod can access a service in its own namespace by just using service name. | |
A pod can access a service in a different namespace by using below format. | |
<svc-name>.<ns-name>.<svc>.<cluster.local> | |
e.g db-service.dev.svc.cluster.local | |
- When a service is created, a DNS entry is added automatically in this format: | |
db-service.dev.svc.cluster.local | |
Here db-service is service name, dev is namespace, svc represents service and cluster.local is domain. | |