我在集群上创建了外部 DNS(由 DigitalOcean 提供),并为
stable/external-dns
Helm 图表设置了以下值:
provider: digitalocean
digitalocean:
apiToken: "MY_DIGITAL_OCEAN_TOKEN"
domainFilters:
- example.com
rbac:
create: true
logLevel: debug
以前还好,但是最近因为
no hosted zone matching record DNS Name was detected
而停止创建记录:
time="2019-06-10T14:42:55Z" level=debug msg="Endpoints generated from ingress: deepfork/df-stats-site: [fork.example.com 0 IN A 134.***.***.197 [] fork.example.com 0 IN A 134.***.***.197 []]"
time="2019-06-10T14:42:55Z" level=debug msg="Removing duplicate endpoint fork.example.com 0 IN A 134.***.***.197 []"
time="2019-06-10T14:42:56Z" level=debug msg="Skipping record fork.example.com because no hosted zone matching record DNS Name was detected "
time="2019-06-10T14:42:56Z" level=debug msg="Skipping record fork.example.com because no hosted zone matching record DNS Name was detected "
当我使用DigitalOcean 网页界面手动添加记录时,问题得到解决。之后,ExternalDNS 开始忽略添加新记录,因为它已经存在了。
time="2019-06-18T11:09:55Z" level=debug msg="Removing duplicate endpoint fork.example.com 0 IN A 134.***.***.197 []"
后来我用接口删除了记录,ExternalDNS就开始工作了。
time="2019-06-18T11:10:56Z" level=info msg="Changing record." action=CREATE record=fork.example.com ttl=300 type=A zone=example.com
time="2019-06-18T11:10:56Z" level=info msg="Changing record." action=CREATE record=fork.example.com ttl=300 type=TXT zone=example.com
kubernetes-incubator/external-dns
provider/digital_ocean.go#digitalOceanChangesByZone()
,您已为其打开了 问题 (1064)
检查这是否与 issue 1055 无关,在使用带有“最新”标签的图像时,该问题也存在类似问题。
最近的提交可能会解决这个问题:
""
。这导致始终匹配排除”另请参阅: