What does looking up the name db return in the cluster?
kind: Service
metadata: { name: db }
spec:
type: ExternalName
externalName: db.prod.example.com
- A CNAME pointing at db.prod.example.com
- A ClusterIP that kube-proxy forwards on
- A node port mapped to the external host
- The address of a new cloud load balancer
An ExternalName Service has no selector or proxying; cluster DNS simply answers with a CNAME record to the external host name.
Play DevOps ▸