2018-12-11 09:28:03 +08:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
name: nodelocaldns
|
|
|
|
namespace: kube-system
|
|
|
|
labels:
|
|
|
|
addonmanager.kubernetes.io/mode: EnsureExists
|
|
|
|
|
|
|
|
data:
|
|
|
|
Corefile: |
|
|
|
|
{{ dns_domain }}:53 {
|
|
|
|
errors
|
|
|
|
cache 30
|
|
|
|
reload
|
|
|
|
loop
|
|
|
|
bind {{ nodelocaldns_ip }}
|
2019-01-29 15:39:27 +08:00
|
|
|
forward . {{ forwardTarget }} {
|
|
|
|
force_tcp
|
2018-12-11 09:28:03 +08:00
|
|
|
}
|
|
|
|
prometheus :9253
|
|
|
|
health {{ nodelocaldns_ip }}:8080
|
2019-01-29 15:39:27 +08:00
|
|
|
}
|
2018-12-11 09:28:03 +08:00
|
|
|
in-addr.arpa:53 {
|
|
|
|
errors
|
|
|
|
cache 30
|
|
|
|
reload
|
|
|
|
loop
|
|
|
|
bind {{ nodelocaldns_ip }}
|
2019-01-29 15:39:27 +08:00
|
|
|
forward . {{ forwardTarget }} {
|
|
|
|
force_tcp
|
2018-12-11 09:28:03 +08:00
|
|
|
}
|
|
|
|
prometheus :9253
|
2019-01-29 15:39:27 +08:00
|
|
|
}
|
2018-12-11 09:28:03 +08:00
|
|
|
ip6.arpa:53 {
|
|
|
|
errors
|
|
|
|
cache 30
|
|
|
|
reload
|
|
|
|
loop
|
|
|
|
bind {{ nodelocaldns_ip }}
|
2019-01-29 15:39:27 +08:00
|
|
|
forward . {{ forwardTarget }} {
|
|
|
|
force_tcp
|
2018-12-11 09:28:03 +08:00
|
|
|
}
|
|
|
|
prometheus :9253
|
2019-01-29 15:39:27 +08:00
|
|
|
}
|
2018-12-11 09:28:03 +08:00
|
|
|
.:53 {
|
|
|
|
errors
|
|
|
|
cache 30
|
|
|
|
reload
|
|
|
|
loop
|
|
|
|
bind {{ nodelocaldns_ip }}
|
2019-01-29 15:39:27 +08:00
|
|
|
forward . {{ upstreamForwardTarget }} {
|
|
|
|
force_tcp
|
2018-12-11 09:28:03 +08:00
|
|
|
}
|
|
|
|
prometheus :9253
|
2019-01-29 15:39:27 +08:00
|
|
|
}
|