ExternalDNS for Managed Kubernetes

ExternalDNS Overview

ExternalDNS is an open-source tool that automates the management of public DNS records for Kubernetes resources such as services and ingresses, that are publicly exposed outside the cluster.

The ExternalDNS solution offers the following capabilities:

  • Control to developers to manage DNS resources that are usually managed manually by third teams. Example: Infrastructure team.

  • Ensures that the DNS records are always up-to-date with the current state of the Kubernetes cluster.

  • Manages a large number of records automatedly.

  • Simplifies the management of DNS records with improved security.

Deployment of ExternalDNS on Managed Kubernetes

Prerequisites: Ensure that you have the following before you begin:

  • A domain name that is registered with your domain provider aka 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.

Follow these steps to set up ExternalDNS for your Managed Kubernetes with IONOS DNS Provider Cloud DNS:

  1. Prepare domain name: You need to first Create a DNS Zone for your domain name with Cloud DNS and then Connect Domain Name to Cloud DNS.

  2. Add Helm chart: Add the Bitnami Helm repository, which contains the official external-dns Helm chart.

  1. Create configuration: Create values file for ExternalDNS Helm chart that includes the plugin configuration. In this example, the values file is called external-dns-ionos-values.yaml.

  1. Install ExternalDNS: To install ExternalDNS with Bitnami Helm chart, use the following commad:

  1. Deploy application: Follow this step to deploy an application:

  • Deploy an echo server application by using the file echoserver_app.yaml.

If you want to use a service, you do not need to install an ingress controller. You can install an ingress controller in the cluster and deploy the application with kubectl by using the following command:

Verify deployment

You can verify that the application deployed is functioning as expected by using one of the following options.

Access application

Check that the echo server app runs on the subdomain you have specified by using the following command:

Expected result:

Check DNS records

Check that the new A and TXT records are created by using the following command:

Last updated

Was this helpful?