After you complete the steps described in Deploy ExternalDNS, verify that ExternalDNS is successfully deployed with Google CloudDNS backend using the procedure below.
To verify ExternalDNS with Google CloudDNS 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 Google Cloud Platform web console.
Navigate to the Cloud DNS > Zone details 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
.