After you complete the steps described in Deploy ExternalDNS, verify that ExternalDNS is successfully deployed with AWS Route 53 backend using the procedure below.
To verify ExternalDNS with AWS Route 53 backend:
Log in to any Kubernetes Master node.
Start my-nginx
:
kubectl run my-nginx --image=nginx --port=80
Example of system response:
deployment "my-nginx" created
Expose my-nginx
:
kubectl expose deployment my-nginx --port=80 --type=ClusterIP
Example of system response:
service "my-nginx" exposed
Annotate my-nginx
:
kubectl annotate service my-nginx \
"external-dns.alpha.kubernetes.io/hostname=nginx.<your_domain>.local."
Example of system response:
service "my-nginx" annotated
Log in to your AWS Route 53 console.
Navigate to the Services > Route 53 > Hosted zones > YOUR_ZONE_NAME page.
Verify that your DNS zone now has two more records of the A
and TXT
type. Both records must point to nginx.<your_domain>.local
.