15 Commits

Author SHA1 Message Date
Benjamin Pineau
837d1ea248 aws: cache zones list
When it syncs AWS DNS with k8s cluster content (at `--interval`), external-dns submits two distinct Route53 API calls:
* to fetch available zones (eg. for tag based zones discovery, or when zones are created after exernal-dns started),
* to fetch relevant zones' resource records.

Each call taxes the Route53 APIs calls budget (5 API calls per second per AWS account/region hard limit), increasing the probability of being throttled.
Changing synchronization interval would mitigate those calls' impact, but at the cost of keeping stale records for a longer time.

For most practical uses cases, zones list aren't expected to change frequently.
Even less so when external-dns is provided an explicit, static zones set (`--zone-id-filter` rather than `--aws-zone-tags`).

Using a zones list cache halves the number of Route53 read API calls.
2020-09-03 13:03:07 +02:00
Vinny Sabatini
47f9fb1b27 utilize the errors package for AWS error handling 2020-08-24 21:57:01 -05:00
Kubernetes Prow Robot
84e6002297
Merge pull request #1549 from Reuuke/master
External DNS should uses ALIAS for AWS Global Accelerator
2020-08-20 00:37:23 -07:00
Benjamin Pineau
b64e3ac832 aws: errors with context
When faced with errors from cloud providers (like "Throttling: Rate exceeded"), it's not always easy to find what operation caused the failure, and what action was aborted, if any,

Let's make it easier to identify an error source (and affected object when possible) by providing more context (and by using easy to find error messages).
2020-08-14 12:54:28 +02:00
Kubernetes Prow Robot
102228c181
Merge pull request #1555 from OmerKahani/Change_Order_Delete_Before_Create
AWS: change the order of the actions, DELETE before CREATE fixes #1411
2020-06-10 08:20:51 -07:00
Nick Jüttner
d867582bf8 improve linter quality for external-dns 2020-06-06 22:35:05 +02:00
Nick Jüttner
3388e3ddf1 improve linter quality for external-dns 2020-06-06 22:29:24 +02:00
Kubernetes Prow Robot
25d71ea45a
Merge pull request #1536 from sheerun/property-comparator
Allow for custom property comparators
2020-06-01 03:07:55 -07:00
greenu
5be33906ff Fix incorrect ELB hostzones for AWS China 2020-05-25 15:42:50 +03:00
Calvin Huang
514c6e277a
update reference link with elb endpoints 2020-05-21 00:45:42 -07:00
Calvin Huang
6f07ea5ea6
Update Govcloud provider hosted zones
Fixes https://github.com/kubernetes-sigs/external-dns/issues/1550;
https://docs.aws.amazon.com/general/latest/gr/rande.html#elb_region now has documentation for the Govcloud regions as well
2020-05-20 17:03:19 -07:00
Adam Stankiewicz
f008e894df Allow for custom property comparators
Fixes issue #1463

Co-authored-by: Alastair Houghton <alastair@alastairs-place.net>
2020-05-12 16:27:46 +02:00
Omer Kahani
231fbeafcb change the order 2020-05-12 11:52:19 +03:00
Ilya Nemakov
b59298e780 External DNS should use ALIAS for AWS Global Accelerator 2020-05-12 11:34:53 +03:00
Raffaele Di Fazio
db4224c705 restructures the providers (build only)
Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>
2020-05-08 13:05:17 +02:00