This commit is contained in:
2023-07-26 13:26:20 +02:00
parent 4b68b96718
commit c3f28a89ed
3 changed files with 33 additions and 17 deletions

View File

@@ -11,6 +11,17 @@ locals {
ready
EOF
end-core = <<-EOF
log . {combined} {
class denial error
}
kubernetes cluster.local
k8s_external ns.${var.domain-name}
prometheus 0.0.0.0:9153
forward . ${var.forward}
cache 30
loop
reload
loadbalance
}
EOF
soa-ns = <<-EOF

View File

@@ -12,8 +12,8 @@ locals {
"key" = "Corefile"
"path" = "Corefile"
}],[for z in var.zones: {
"key" = z.name
"path" = z.name
"key" = "${z.name}.db"
"path" = "${z.name}.db"
}])
}

View File

@@ -6,6 +6,26 @@ metadata:
name: dns
description: null
options:
sub-domain:
default: dns
examples:
- dns
type: string
domain:
default: your-company
examples:
- your-company
type: string
domain-name:
default: your_company.com
examples:
- your_company.com
type: string
forward:
default: 192.168.1.254
examples:
- 192.168.1.254
type: string
zones:
default: []
items:
@@ -30,21 +50,6 @@ options:
type: string
type: object
type: array
sub-domain:
default: dns
examples:
- dns
type: string
domain:
default: your-company
examples:
- your-company
type: string
domain-name:
default: your_company.com
examples:
- your_company.com
type: string
image:
default:
pullPolicy: IfNotPresent