external-dns
БесплатноБез исполняемых скриптовНе проверенExternalDNS automatically creates and updates DNS records for Kubernetes Services, Ingresses, Gateway API routes and Istio resources in providers such as…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
ExternalDNS
Overview
ExternalDNS runs as a controller in the cluster, reads hostnames from Services (type LoadBalancer), Ingresses, Gateway API routes, Istio Gateways and other sources, and creates matching records in your DNS provider. Ownership is tracked with TXT records (--registry=txt plus a unique --txt-owner-id), so it only touches records it created. Checked against Helm chart 1.23.0 (app v0.23.0; v0.24.0 was released on 2026-10-23).
Three changes from older guides matter:
- Annotation prefix. Since v0.22.0 the annotations use
external-dns.kubernetes.io/...(hostname, ttl, target,cloudflare-proxied). The oldexternal-dns.alpha.kubernetes.io/...keys are ignored by default (v0.22.0 had no fallback), and withpolicy: syncthe controller can then delete records it no longer sees a source for. Migrate annotations first and run with--dry-run. While migrating, v0.23+ can read both prefixes with--enable-legacy-annotation-prefix; setting--annotation-prefix=external-dns.alpha.kubernetes.io/also works. --policyis required (sync,upsert-onlyorcreate-only). The Helm chart rejects values withoutpolicy.- Helm values. The chart has first-class keys:
sources,domainFilters,policy,registry,txtOwnerId. Do not repeat--sourceor--domain-filterinextraArgs, or the arguments are duplicated. The in-tree provider list is closed; new providers (Hetzner, DigitalOcean, Namecheap and others) are webhook providers installed as sidecars. Akamai, Plural and Transip in-tree support was removed in v0.22.
Instructions
Install with Helm
helm repo add external-dns https://kubernetes-sigs.github.io/external-dns/
helm repo update
helm install external-dns external-dns/external-dns \
--namespace external-dns --create-namespace \
--version 1.23.0 \
--values values.yaml
Preview what a values file produces before installing: helm template external-dns external-dns/external-dns --version 1.23.0 -f values.yaml | grep -- '- --' lists the controller arguments.
AWS Route 53
# values-aws.yaml
provider:
name: aws
env:
- name: AWS_DEFAULT_REGION
value: us-east-1
sources:
- service
- ingress
domainFilters:
- shop.northwind-example.org
policy: upsert-only # creates and updates, never deletes
registry: txt
txtOwnerId: prod-eks-1 # unique per cluster
extraArgs:
- --aws-zone-type=public
serviceAccount:
annotations:
eks.amazonaws.com/role-arn: arn:aws:iam::123456789012:role/external-dns
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["route53:ChangeResourceRecordSets", "route53:ListResourceRecordSets", "route53:ListTagsForResources"],
"Resource": ["arn:aws:route53:::hostedzone/Z0123456789ABCDEFGHIJ"]
},
{
"Effect": "Allow",
"Action": ["route53:ListHostedZones"],
"Resource": ["*"]
}
]
}
Attach the policy to an IAM role trusted by the cluster's service account (IRSA or EKS Pod Identity).
Google Cloud DNS
# values-gcp.yaml
provider:
name: google
sources: [service, ingress]
domainFilters: [shop.northwind-example.org]
policy: sync
registry: txt
txtOwnerId: prod-gke-1
extraArgs:
- --google-project=northwind-prod
- --google-zone-visibility=public
The pod needs DNS admin rights on the zone, normally through Workload Identity.
Cloudflare
Create an API token with Zone Read and DNS Edit permissions, restricted to the zones you use (then also pass --zone-id-filter). Create the secret from the environment so the token never lands in a file:
kubectl create namespace external-dns
printf '%s' "$CLOUDFLARE_API_TOKEN" | kubectl -n external-dns create secret generic cloudflare-api-token --from-file=api-token=/dev/stdin
# values-cloudflare.yaml
provider:
name: cloudflare
env:
- name: CF_API_TOKEN
valueFrom:
secretKeyRef:
name: cloudflare-api-token
key: api-token
sources: [service, ingress]
domainFilters: [shop.northwind-example.org]
policy: sync
txtOwnerId: prod-k3s-1
extraArgs:
- --cloudflare-proxied # orange-cloud every record; override per resource with the annotation
# proxied records: leave the ttl annotation unset or set it to 1 (automatic)
Do not set CF_API_KEY or CF_API_EMAIL together with CF_API_TOKEN.
Service and Ingress annotations
# service-lb.yaml
apiVersion: v1
kind: Service
metadata:
name: web-app
annotations:
external-dns.kubernetes.io/hostname: app.shop.northwind-example.org
external-dns.kubernetes.io/ttl: "300"
spec:
type: LoadBalancer
selector:
app: web-app
ports:
- port: 80
targetPort: 8080
Several hostnames: external-dns.kubernetes.io/hostname: "api.shop.northwind-example.org,api-v2.shop.northwind-example.org". Per-record Cloudflare proxying: external-dns.kubernetes.io/cloudflare-proxied: "true". A fixed target instead of the load bal
Установить external-dns в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл external-dns?
ExternalDNS automatically creates and updates DNS records for Kubernetes Services, Ingresses, Gateway API routes and Istio resources in providers such as Route 53, Cloud DNS and Cloudflare. Use when someone asks to "point a hostname at my Kubernetes service automatically", "install external-dns with Helm", "sync Ingress hosts to Route 53 or Cloudflare", or "fix external-dns deleting or not creating records".
Как установить скилл external-dns?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл external-dns запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic