fix(external-dns): remove invalid --target flag, move to per-resource annotation

ExternalDNS v0.15.1 does not support --target as a CLI flag.
Remove the extraArgs stanza from external-dns-cloudflare values.yaml
and instead add the target annotation directly on the CouchDB ingress:
  external-dns.alpha.kubernetes.io/target: ingress.mk-labs.cloud

This achieves the same result (Cloudflare CNAME -> ingress.mk-labs.cloud)
without crashing the controller.
This commit is contained in:
Hermes Agent service account
2026-06-07 19:08:15 -05:00
parent 3344e24a48
commit 86433a58d0
2 changed files with 2 additions and 6 deletions

View File

@@ -60,8 +60,8 @@ ingress:
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
external-dns.alpha.kubernetes.io/hostname: "communicore.local.mk-labs.cloud"
external-dns.alpha.kubernetes.io/target: "10.1.71.80"
# Opt in to public Cloudflare DNS — creates communicore.mk-labs.cloud -> lb.mk-labs.cloud
external-dns.alpha.kubernetes.io/target: "ingress.mk-labs.cloud"
# Opt in to public Cloudflare DNS — creates communicore.mk-labs.cloud -> ingress.mk-labs.cloud
external-dns.alpha.kubernetes.io/public: "true"
hosts:
- communicore.local.mk-labs.cloud

View File

@@ -38,10 +38,6 @@ sources:
# ingress/service that should get a public Cloudflare record.
annotationFilter: "external-dns.alpha.kubernetes.io/public=true"
# Override the target for all Cloudflare-managed records to the public LB CNAME.
extraArgs:
- --target=ingress.mk-labs.cloud
# Log level
logLevel: info