In Kubernetes, services are assigned a DNS A record in the format of svc-name.service-namespace.svc.cluster.local. This name resolves to the cluster IP of the Service.
For e.g. if you have a service named tomcatappsvc in tomcat-ns namespace, the service DNS name format would be tomcatappsvc.tomcat-ns.svc.cluster.local
More information can be found at https://medium.com/kubernetes-tutorials/kubernetes-dns-for-services-and-pods-664804211501
No comments:
Post a Comment