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:
@@ -60,8 +60,8 @@ ingress:
|
|||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||||
external-dns.alpha.kubernetes.io/hostname: "communicore.local.mk-labs.cloud"
|
external-dns.alpha.kubernetes.io/hostname: "communicore.local.mk-labs.cloud"
|
||||||
external-dns.alpha.kubernetes.io/target: "10.1.71.80"
|
external-dns.alpha.kubernetes.io/target: "ingress.mk-labs.cloud"
|
||||||
# Opt in to public Cloudflare DNS — creates communicore.mk-labs.cloud -> lb.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"
|
external-dns.alpha.kubernetes.io/public: "true"
|
||||||
hosts:
|
hosts:
|
||||||
- communicore.local.mk-labs.cloud
|
- communicore.local.mk-labs.cloud
|
||||||
|
|||||||
@@ -38,10 +38,6 @@ sources:
|
|||||||
# ingress/service that should get a public Cloudflare record.
|
# ingress/service that should get a public Cloudflare record.
|
||||||
annotationFilter: "external-dns.alpha.kubernetes.io/public=true"
|
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
|
# Log level
|
||||||
logLevel: info
|
logLevel: info
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user