· ☕ 4 分钟
k8s headless svc k8s headless and dns https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
A/AAAA records
“Normal” (not headless) Services are assigned a DNS A or AAAA record, depending on the IP family of the service, for a name of the form my-svc.my-namespace.svc.cluster-domain.example. This resolves to the cluster IP of the Service.
“Headless” (without a cluster IP) Services are also assigned a DNS A or AAAA record, depending on the IP family of the service, for a name of the form my-svc.