mapping dns via argocd applicationset and external-dns

When using ArgoCD and an ApplicationSet to deploy external-dns to all clusters, as part of a grouping of addons common to all clusters, it can be useful to configure the DNS filter using variables:

          releaseName: "external-dns"
          - name: external-dns.domainFilters
            value: "{ {{name}} }"
          - name: external-dns.txtOwnerId
            value: '{{name}}'
          - name:
            value: '{{name}}'

This will place the cluster name as part of the dns name used by external-dns, resulting in the following type of FQDNs used by clusters:

Though, for my core cluster with components used by all clusters, I like to leave out the cluster name so all core components are at the k.<domain> level:
Posted in Infrastructure, Kubernetes.

Leave a Reply