Files
cozystack/packages/extra/external-dns
AuricX 5a0ee76edf fix(external-dns): stop enabling the service source on tenant instances
An ExternalDNS application crash-loops a minute after every start and
publishes no records:

  level=fatal msg="failed to sync *v1.Node: context deadline exceeded with timeout 1m0s"

The instance runs external-dns namespaced, so the vendored chart renders
a Role and leaves out the nodes rule, because a Role cannot grant a
cluster-scoped resource. The service source still starts a Node
informer, which never syncs without that grant.

Drop service from the hardcoded sources rather than grant nodes through
a ClusterRole. The source only publishes Services that carry the
external-dns hostname annotation, and tenants cannot annotate the
Services the platform renders in their namespace, so it published
nothing here. A ClusterRole would be cluster-scoped RBAC created by a
tenant application for a source with no use.

Tested with a new helm-unittest suite that pins the rendered sources
with and without gatewayAPI. Both cases fail while service is listed.

Closes: #4958
Assisted-by: LLM
Signed-off-by: AuricX <auricx.business@gmail.com>
2026-12-01 17:05:45 +02:00
..

External DNS

Parameters

Common parameters

Name Description Type Value
provider DNS provider name. string {}
domainFilters List of domains this external-dns instance can manage. []string []
policy How DNS records are synchronized. string upsert-only
extraArgs Extra arguments for external-dns. []string []
gatewayAPI Enable Gateway API HTTPRoute and TLSRoute as sources for DNS records. bool false
annotationPrefix Custom annotation prefix for external-dns (useful for running multiple instances). string ""

Cloudflare

Name Description Type Value
cloudflare Cloudflare provider credentials. object {"apiEmail":"","apiKey":"","apiToken":"","proxied":false}

AWS

Name Description Type Value
aws AWS Route53 provider credentials. object {"accessKeyId":"","region":"","secretAccessKey":"","zoneType":""}

Azure

Name Description Type Value
azure Azure DNS provider credentials. object {"aadClientId":"","aadClientSecret":"","resourceGroup":"","subscriptionId":"","tenantId":""}

Google

Name Description Type Value
google Google Cloud DNS provider credentials. object {"project":"","serviceAccountKey":""}

DigitalOcean

Name Description Type Value
digitalocean DigitalOcean DNS provider credentials. object {"token":""}

Linode

Name Description Type Value
linode Linode DNS provider credentials. object {"token":""}

OVH

Name Description Type Value
ovh OVH DNS provider credentials. object {"applicationKey":"","applicationSecret":"","consumerKey":"","endpoint":""}

Exoscale

Name Description Type Value
exoscale Exoscale DNS provider credentials. object {"apiKey":"","apiSecret":""}

GoDaddy

Name Description Type Value
godaddy GoDaddy DNS provider credentials. object {"apiKey":"","apiSecret":""}

Resources

Name Description Type Value
resources Explicit CPU and memory configuration. When omitted, the preset defined in resourcesPreset is applied. object {}
resources.cpu CPU available to each replica. quantity ""
resources.memory Memory (RAM) available to each replica. quantity ""
resourcesPreset Default sizing preset used when resources is omitted. string t1.nano

Scheduling parameters

Name Description Type Value
schedulingClass Name of a SchedulingClass CR (cluster-scoped, group cozystack.io) used in place of the tenant's for this application's pods. A pod gets its class when it is created, so running pods keep theirs until they are recreated. Must be the tenant's own class or one listed in the tenant's allowedSchedulingClasses. Setting any other value is refused, and the pods of an application whose class is not, or no longer, in that list get the tenant's class. Empty means inherit from the tenant. string ""