2018-03-13 11:00:05 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
name: coredns
|
2018-03-30 11:29:13 +00:00
|
|
|
namespace: kube-system
|
2018-11-15 17:52:12 +00:00
|
|
|
labels:
|
|
|
|
addonmanager.kubernetes.io/mode: EnsureExists
|
2018-03-13 11:00:05 +00:00
|
|
|
data:
|
|
|
|
Corefile: |
|
|
|
|
.:53 {
|
|
|
|
errors
|
|
|
|
health
|
2018-06-13 18:52:35 +00:00
|
|
|
kubernetes {{ dns_domain }} in-addr.arpa ip6.arpa {
|
2018-03-13 11:00:05 +00:00
|
|
|
pods insecure
|
2018-10-08 14:08:51 +00:00
|
|
|
{% if resolvconf_mode == 'host_resolvconf' and upstream_dns_servers is defined and upstream_dns_servers|length > 0 %}
|
2019-04-09 09:19:06 +00:00
|
|
|
upstream {{ upstream_dns_servers|join(' ') }}
|
2018-10-08 14:08:51 +00:00
|
|
|
{% else %}
|
2018-03-13 11:00:05 +00:00
|
|
|
upstream /etc/resolv.conf
|
2018-10-08 14:08:51 +00:00
|
|
|
{% endif %}
|
2018-03-13 11:00:05 +00:00
|
|
|
fallthrough in-addr.arpa ip6.arpa
|
|
|
|
}
|
|
|
|
prometheus :9153
|
2018-10-08 14:08:51 +00:00
|
|
|
{% if resolvconf_mode == 'host_resolvconf' and upstream_dns_servers is defined and upstream_dns_servers|length > 0 %}
|
2019-04-09 09:19:06 +00:00
|
|
|
forward . {{ upstream_dns_servers|join(' ') }}
|
2018-10-08 14:08:51 +00:00
|
|
|
{% else %}
|
2019-04-04 07:40:50 +00:00
|
|
|
forward . /etc/resolv.conf
|
2018-10-08 14:08:51 +00:00
|
|
|
{% endif %}
|
2018-03-13 11:00:05 +00:00
|
|
|
cache 30
|
2018-10-11 07:12:58 +00:00
|
|
|
loop
|
|
|
|
reload
|
|
|
|
loadbalance
|
2018-03-13 11:00:05 +00:00
|
|
|
}
|