This guide explains how to install and configure ExternalDNS on Kubernetes to manage GoDaddy DNS records automatically.
In this guide, you will learn how to install and configure ExternalDNS on a Kubernetes cluster to automatically manage DNS records in GoDaddy based on Ingress resources. This approach ensures that your services are always reachable via the correct domain names without manual DNS updates.
time="2024-07-18T23:18:02Z" level=info msg="Using inCluster-config based on serviceaccount-token"time="2024-07-18T23:18:04Z" level=info msg="GoDaddy: 2 zones found"time="2024-07-18T23:18:04Z" level=info msg="All records are already up to date"
Define an Ingress that exposes the whoami service and instructs ExternalDNS to manage the DNS record whoami.kubernetkk.xyz pointing to your node IP (192.168.121.243 in this example).
time="2024-07-18T23:21:05Z" level=info msg="GoDaddy: 3 changes will be done"
This confirms that ExternalDNS is creating the DNS record.
If you use a cloud provider’s LoadBalancer service type, omit the external-dns.alpha.kubernetes.io/target annotation. ExternalDNS will automatically use the LoadBalancer’s IP.