Merge pull request #761 from benyanke/patch-1
Allowing TTL to be specified by Env var
This commit is contained in:
commit
4e255f2825
@ -11,7 +11,7 @@ Rancher External DNS service powered by DigitalOcean
|
|||||||
#### Usage
|
#### Usage
|
||||||
|
|
||||||
##### DigitalOcean DNS record TTL
|
##### 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
|
##### Limitation when running the service on multiple Rancher servers
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ digitalocean:
|
|||||||
DO_PAT: ${DO_PAT}
|
DO_PAT: ${DO_PAT}
|
||||||
ROOT_DOMAIN: ${ROOT_DOMAIN}
|
ROOT_DOMAIN: ${ROOT_DOMAIN}
|
||||||
NAME_TEMPLATE: ${NAME_TEMPLATE}
|
NAME_TEMPLATE: ${NAME_TEMPLATE}
|
||||||
TTL: 300
|
TTL: ${DNS_TTL}
|
||||||
labels:
|
labels:
|
||||||
io.rancher.container.create_agent: "true"
|
io.rancher.container.create_agent: "true"
|
||||||
io.rancher.container.agent.role: "external-dns"
|
io.rancher.container.agent.role: "external-dns"
|
||||||
|
@ -15,6 +15,13 @@
|
|||||||
description: "The domain name managed by DigitalOcean."
|
description: "The domain name managed by DigitalOcean."
|
||||||
type: "string"
|
type: "string"
|
||||||
required: true
|
required: true
|
||||||
|
- variable: "DNS_TTL"
|
||||||
|
label: "TTL"
|
||||||
|
description: |
|
||||||
|
TTL used for new DNS records.
|
||||||
|
type: "string"
|
||||||
|
default: "300"
|
||||||
|
required: true
|
||||||
- variable: "NAME_TEMPLATE"
|
- variable: "NAME_TEMPLATE"
|
||||||
label: "DNS Name Template"
|
label: "DNS Name Template"
|
||||||
description: |
|
description: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user