kubernetes 外部DNS跳过记录(未检测到匹配的托管区域)

j5fpnvbx  于 2023-10-17  发布在  Kubernetes
关注(0)|答案(2)|浏览(87)

我在集群上创建了外部DNS(由DigitalOcean提供),stable/external-dns Helm chart的值如下:

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 "
6kkfgxo0

6kkfgxo01#

当我用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
eh57zj3b

eh57zj3b2#

此错误消息来自kubernetes-incubator/external-dnsprovider/digital_ocean.go#digitalOceanChangesByZone(),您已为其打开an issue (1064)的项目
检查这是否与issue 1055无关,当使用带有“latest”标签的图像时,issue 1055也有类似的问题。
最近的提交可以解决这个问题:

另请参阅:

相关问题