diff --git a/infra-templates/digitalocean-dns/3/README.md b/infra-templates/digitalocean-dns/3/README.md index 013559c..a3bd095 100644 --- a/infra-templates/digitalocean-dns/3/README.md +++ b/infra-templates/digitalocean-dns/3/README.md @@ -11,7 +11,7 @@ Rancher External DNS service powered by DigitalOcean #### Usage ##### DigitalOcean DNS record TTL -The DigitalOcean API currently does not support per-record TTL setting. You should configure the global TTL setting for the domain manually and set it to a low value (e.g. 60). +The DigitalOcean API currently supports per-record TTL setting (https://developers.digitalocean.com/documentation/v2/#create-a-new-domain-record), but it is not yet implemented in this tool. You should configure the global TTL setting for the domain manually and set it to a low value (e.g. 60). ##### Limitation when running the service on multiple Rancher servers diff --git a/infra-templates/digitalocean-dns/3/docker-compose.yml b/infra-templates/digitalocean-dns/3/docker-compose.yml index 1564ee2..7d85d09 100644 --- a/infra-templates/digitalocean-dns/3/docker-compose.yml +++ b/infra-templates/digitalocean-dns/3/docker-compose.yml @@ -7,7 +7,7 @@ digitalocean: DO_PAT: ${DO_PAT} ROOT_DOMAIN: ${ROOT_DOMAIN} NAME_TEMPLATE: ${NAME_TEMPLATE} - TTL: 300 + TTL: ${DNS_TTL} labels: io.rancher.container.create_agent: "true" io.rancher.container.agent.role: "external-dns" diff --git a/infra-templates/digitalocean-dns/3/rancher-compose.yml b/infra-templates/digitalocean-dns/3/rancher-compose.yml index 64d5f43..6b62bb5 100644 --- a/infra-templates/digitalocean-dns/3/rancher-compose.yml +++ b/infra-templates/digitalocean-dns/3/rancher-compose.yml @@ -15,6 +15,13 @@ description: "The domain name managed by DigitalOcean." type: "string" required: true + - variable: "DNS_TTL" + label: "TTL" + description: | + TTL used for new DNS records. + type: "string" + default: "300" + required: true - variable: "NAME_TEMPLATE" label: "DNS Name Template" description: |