我在集群(由DigitalOcean提供)上创建了外部DNS,并使用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 "
答案 0 :(得分:1)
此错误消息来自kubernetes-incubator/external-dns
provider/digital_ocean.go#digitalOceanChangesByZone()
,您已为其打开an issue (1064)的项目
在使用带有“最新”标签的图像时,检查这是否与具有类似问题的issue 1055无关。
最近的提交可能会解决此问题:
""
。这导致始终与排除” 答案 1 :(得分:1)
当我使用DigitalOcean web interface手动添加记录时,它已解决。之后,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