2018-12-11 01:28:03 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
name: nodelocaldns
|
|
|
|
namespace: kube-system
|
|
|
|
labels:
|
|
|
|
addonmanager.kubernetes.io/mode: EnsureExists
|
|
|
|
|
|
|
|
data:
|
|
|
|
Corefile: |
|
|
|
|
{{ dns_domain }}:53 {
|
|
|
|
errors
|
2019-04-04 07:38:51 +00:00
|
|
|
cache {
|
|
|
|
success 9984 30
|
|
|
|
denial 9984 5
|
|
|
|
}
|
2018-12-11 01:28:03 +00:00
|
|
|
reload
|
|
|
|
loop
|
|
|
|
bind {{ nodelocaldns_ip }}
|
2019-01-29 07:39:27 +00:00
|
|
|
forward . {{ forwardTarget }} {
|
|
|
|
force_tcp
|
2018-12-11 01:28:03 +00:00
|
|
|
}
|
|
|
|
prometheus :9253
|
2019-07-09 07:52:01 +00:00
|
|
|
health {{ nodelocaldns_ip }}:{{ nodelocaldns_health_port }}
|
2019-01-29 07:39:27 +00:00
|
|
|
}
|
2018-12-11 01:28:03 +00:00
|
|
|
in-addr.arpa:53 {
|
|
|
|
errors
|
|
|
|
cache 30
|
|
|
|
reload
|
|
|
|
loop
|
|
|
|
bind {{ nodelocaldns_ip }}
|
2019-01-29 07:39:27 +00:00
|
|
|
forward . {{ forwardTarget }} {
|
|
|
|
force_tcp
|
2018-12-11 01:28:03 +00:00
|
|
|
}
|
|
|
|
prometheus :9253
|
2019-01-29 07:39:27 +00:00
|
|
|
}
|
2018-12-11 01:28:03 +00:00
|
|
|
ip6.arpa:53 {
|
|
|
|
errors
|
|
|
|
cache 30
|
|
|
|
reload
|
|
|
|
loop
|
|
|
|
bind {{ nodelocaldns_ip }}
|
2019-01-29 07:39:27 +00:00
|
|
|
forward . {{ forwardTarget }} {
|
|
|
|
force_tcp
|
2018-12-11 01:28:03 +00:00
|
|
|
}
|
|
|
|
prometheus :9253
|
2019-01-29 07:39:27 +00:00
|
|
|
}
|
2018-12-11 01:28:03 +00:00
|
|
|
.:53 {
|
|
|
|
errors
|
|
|
|
cache 30
|
|
|
|
reload
|
|
|
|
loop
|
|
|
|
bind {{ nodelocaldns_ip }}
|
2019-04-10 19:40:09 +00:00
|
|
|
forward . {{ upstreamForwardTarget }}
|
2018-12-11 01:28:03 +00:00
|
|
|
prometheus :9253
|
2019-01-29 07:39:27 +00:00
|
|
|
}
|