diff --git a/docs/tutorials/digitalocean.md b/docs/tutorials/digitalocean.md index 41b810168..2a316a390 100644 --- a/docs/tutorials/digitalocean.md +++ b/docs/tutorials/digitalocean.md @@ -189,3 +189,13 @@ Now that we have verified that ExternalDNS will automatically manage DigitalOcea $ kubectl delete service -f nginx.yaml $ kubectl delete service -f externaldns.yaml ``` + +## Advanced Usage + +### API Page Size + +If you have a large number of domains and/or records within a domain, you may encounter API +rate limiting because of the number of API calls that external-dns must make to the DigitalOcean API to retrieve +the current DNS configuration during every reconciliation loop. If this is the case, use the +`--digitalocean-api-page-size` option to increase the size of the pages used when querying the DigitalOcean API. +(Note: external-dns uses a default of 50.) diff --git a/pkg/apis/externaldns/types.go b/pkg/apis/externaldns/types.go index 68b76e0ed..c2c6c06c3 100644 --- a/pkg/apis/externaldns/types.go +++ b/pkg/apis/externaldns/types.go @@ -238,7 +238,7 @@ var defaultConfig = &Config{ NS1IgnoreSSL: false, TransIPAccountName: "", TransIPPrivateKeyFile: "", - DigitalOceanAPIPageSize: 200, + DigitalOceanAPIPageSize: 50, } // NewConfig returns new Config object