Configure External DNS with the CLI: Management or Essential Cluster
This page contains information on how to configure an external-dns
service to manage DNS records automatically in your Management or Essential Cluster.
Prerequisite
Ensure you have configured a DNS zone with your cloud provider.
Configure External DNS and Customize Traefik
The configuration varies depending on your cloud provider.
Open the
kommander.yaml
file:If you have not installed the Kommander component yet, initialize the configuration file, so you can edit it in the following steps.
WARNING: Initialize this file only ONCE, otherwise you will overwrite previous customizations.If you have installed the Kommander component already, open the existing
kommander.yaml
with the editor of your choice.
Adjust the
app
section of yourkommander.yaml
file to include these values:
3. In the same app
section, adjust the traefik
section to include the following:
traefik:
enabled: true
values: |
service:
annotations:
external-dns.alpha.kubernetes.io/hostname: <mycluster.example.com>
4. Use the configuration file to install or update the Kommander component:
dkp install kommander --installer-config kommander.yaml --kubeconfig=${CLUSTER_NAME}.conf
Refer to the external-dns documentation for more information, as well as further instructions on how to configure external-dns
to use other DNS providers like Google Cloud DNS, CloudFlare, or on-site providers.