-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Cloudflare provider] external-dns should stop processing when zone lookup fails #2610
Comments
PR with a suggested fix can be found here: #2662 |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/remove-lifecycle rotten |
/reopen |
@mateusz-jablonski94: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
…ookup stop processing after zone lookup failed
What happened:
We have an application
aaa.bbb.com
that is hosted in two datacenters. Domainaaa.bbb.com
has A recordxxx.xxx.xxx.xxx
(datacenter 1) and this record A is added manually. Some paths for this application are redirected by CloudFlare Page Rules to IPyyy.yyy.yyy.yyy
(datacenter 2 - where Kubernetes cluster works withexternal-dns
)Our monitoring notified us about some problems with service
aaa.bbb.com
. After debugging we saw a bad A record foraaa.bbb.com
domain with valueyyy.yyy.yyy.yyy
and a new TXT record added byexternal-dns
. Next we checked CloudFlare Audit Log and we saw a huge number of ADD operations in ZoneIDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
executed byexternal-dns
.External-dns
executed requests for all ADD domains which are used in ingresses, even for domains that did not have a TXT record specifying that thisexternal-dns
instance owns the domain.In
external-dns
logs we found this line:Below, there was an information about getting endpoints from ingresses and (which surprised us) creating A and TXT records for all domains used in ingresses.
What you expected to happen:
When zone lookup failed we should return an error and stop processing :
external-dns/provider/cloudflare/cloudflare.go
Lines 170 to 186 in dd870ae
How to reproduce it (as minimally and precisely as possible):
Environment
external-dns/provider/cloudflare/cloudflare.go
Line 174 in dd870ae
Anything else we need to know?:
Seems like the problem can be solved by simple change:
from:
to
Environment:
0.7.6
cloudflare
The text was updated successfully, but these errors were encountered: