ExternalDNS for Managed Kubernetes
Overview
ExternalDNS is a Kubernetes add-on that automates the management of public DNS records for Kubernetes resources, such as services and ingresses exposed outside the cluster. Unlike Kubernetes' internal DNS management, which is limited to internal cluster communication, ExternalDNS extends this functionality by delegating DNS record management to external DNS providers, such as IONOS Cloud DNS.
The ExternalDNS solution offers the following capabilities:
Empowers developers to manage DNS resources traditionally handled manually by infrastructure teams.
Ensures that DNS records are synchronized with the current state of the Kubernetes cluster.
Automates the management of many DNS records, reducing manual effort.
Simplifies DNS management while improving security.
By integrating ExternalDNS with the IONOS webhook, you can manage your IONOS domains directly within your Kubernetes cluster. This integration requires an IONOS API key or token from the account managing your domains. The following tutorial provides detailed technical instructions for deploying ExternalDNS with the IONOS webhook using the Helm chart.
Target audience
This tutorial is intended to help both developers and technical decision-makers.
What you will learn
The following tutorial provides detailed technical instructions for deploying ExternalDNS with the IONOS webhook using the Helm chart.
Before you begin
Ensure that you have the following before you begin:
A domain name registered with your domain provider, domain registrar, or a subdomain under your control.
A token from a user with privileges to manage zones and records with Cloud DNS.
An IONOS Managed Kubernetes cluster.
The kubectl installed on your local machine.
The Helm tool for installing a Helm chart.
Procedure
Follow these steps to set up ExternalDNS for your Managed Kubernetes with IONOS DNS Provider Cloud DNS:
Create a domain name
You must first Create a Primary Zone for your domain name with Cloud DNS and then Connect Domain Name to Cloud DNS.
Final result
The deployment of ExternalDNS on Managed Kubernetes is complete. You can verify that the application deployed is functioning as expected using one of the following options:
Check that the echo server app runs on the subdomain you have specified by using the following command:
Result:
Check that the new A and TXT records are created by using the following command:
Conclusion
By following this tutorial, you have successfully deployed ExternalDNS with the IONOS webhook on a Managed Kubernetes cluster, enabling automated DNS record management for your applications. This integration streamlines DNS operations, reduces manual intervention, and ensures your DNS records stay synchronized with your cluster resources. You can now confidently manage DNS for your Kubernetes workloads using IONOS Cloud DNS.
Last updated
Was this helpful?
