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.

32 lines
600 B

9 years ago
9 years ago
9 years ago
  1. #Listen on localhost
  2. bind-interfaces
  3. listen-address=0.0.0.0
  4. addn-hosts=/etc/hosts
  5. strict-order
  6. # Forward k8s domain to kube-dns
  7. server=/{{ dns_domain }}/{{ skydns_server }}
  8. #Set upstream dns servers
  9. {% if upstream_dns_servers is defined %}
  10. {% for srv in upstream_dns_servers %}
  11. server={{ srv }}
  12. {% endfor %}
  13. {% elif cloud_provider is defined and cloud_provider == "gce" %}
  14. server=169.254.169.254
  15. {% else %}
  16. server=8.8.8.8
  17. server=8.8.4.4
  18. {% endif %}
  19. {% if kube_log_level == 4 %}
  20. log-queries
  21. {% endif %}
  22. bogus-priv
  23. no-resolv
  24. no-negcache
  25. cache-size=1000
  26. max-cache-ttl=10
  27. max-ttl=20
  28. log-facility=-