Skip to content

Commit 1f67b1e

Browse files
authored
Update coredns.tf example
1 parent 308d01a commit 1f67b1e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

_examples/coredns.tf

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ module "coredns" {
99
nomad_token = local.nomad_token // Token for the Nomad server
1010

1111
// Optional parameters
12-
enabled = true
13-
hosts = ["cm3"] // Host constraint for the job
14-
port = 53 // Port to expose for plaintext connections
15-
cache_ttl = 30 // Cache TTL in seconds
16-
dns_zone = "nomad" // DNS zone to serve
12+
service_type = "system" // System or service
13+
service_dns = [ "dns1", "dns2" ] // Upstream DNS
14+
enabled = true
15+
hosts = ["server1"] // Host constraint for the job
16+
port = 53 // Port to expose for plaintext connections
17+
cache_ttl = 30 // Cache TTL in seconds
18+
dns_zone = "nomad" // DNS zone to serve
1719
}

0 commit comments

Comments
 (0)