Cloudflare 自定义主机名应用于每个无头服务记录,而不仅仅是带有注解的主机名
作者: ThisIsQasim创建于 2026年9月2日更新于 2026年9月4日
标签kind/bug
What happened:
For a headless (clusterIP: None) Service in front of a StatefulSet, annotated with both external-dns.Kubernetes.io/hostname and external-dns.Kubernetes.io/Cloudflare-custom-hostname (--Cloudflare-custom-hostnames enabled), external-dns applies the Cloudflare custom hostname to every DNS record it derives from that one Service — the aggregate record matching the hostname annotation, and one additional record per StatefulSet pod (<pod>.<hostname>, generated because those pods have pod.Spec.Hostname set).
内容来源: kubernetes-sigs/external-dns