You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
903 B

  1. ---
  2. apiVersion: v1
  3. kind: ConfigMap
  4. metadata:
  5. name: coredns
  6. namespace: kube-system
  7. labels:
  8. addonmanager.kubernetes.io/mode: EnsureExists
  9. data:
  10. Corefile: |
  11. .:53 {
  12. errors
  13. health
  14. kubernetes {{ dns_domain }} in-addr.arpa ip6.arpa {
  15. pods insecure
  16. {% if resolvconf_mode == 'host_resolvconf' and upstream_dns_servers is defined and upstream_dns_servers|length > 0 %}
  17. upstream {{ upstream_dns_servers|join(' ') }}
  18. {% else %}
  19. upstream /etc/resolv.conf
  20. {% endif %}
  21. fallthrough in-addr.arpa ip6.arpa
  22. }
  23. prometheus :9153
  24. {% if resolvconf_mode == 'host_resolvconf' and upstream_dns_servers is defined and upstream_dns_servers|length > 0 %}
  25. proxy . {{ upstream_dns_servers|join(' ') }}
  26. {% else %}
  27. proxy . /etc/resolv.conf
  28. {% endif %}
  29. cache 30
  30. loop
  31. reload
  32. loadbalance
  33. }