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.

53 lines
1.3 KiB

  1. ---
  2. apiVersion: extensions/v1beta1
  3. kind: DaemonSet
  4. metadata:
  5. name: dnsmasq
  6. namespace: kube-system
  7. labels:
  8. k8s-app: dnsmasq
  9. spec:
  10. template:
  11. metadata:
  12. labels:
  13. k8s-app: dnsmasq
  14. spec:
  15. containers:
  16. - name: dnsmasq
  17. image: "{{ dnsmasq_image_repo }}:{{ dnsmasq_image_tag }}"
  18. command:
  19. - dnsmasq
  20. args:
  21. - -k
  22. - "-7"
  23. - /etc/dnsmasq.d
  24. securityContext:
  25. capabilities:
  26. add:
  27. - NET_ADMIN
  28. imagePullPolicy: IfNotPresent
  29. resources:
  30. limits:
  31. cpu: 100m
  32. memory: 256M
  33. ports:
  34. - name: dns
  35. containerPort: 53
  36. protocol: UDP
  37. - name: dns-tcp
  38. containerPort: 53
  39. protocol: TCP
  40. volumeMounts:
  41. - name: etcdnsmasqd
  42. mountPath: /etc/dnsmasq.d
  43. - name: etcdnsmasqdavailable
  44. mountPath: /etc/dnsmasq.d-available
  45. volumes:
  46. - name: etcdnsmasqd
  47. hostPath:
  48. path: /etc/dnsmasq.d
  49. - name: etcdnsmasqdavailable
  50. hostPath:
  51. path: /etc/dnsmasq.d-available
  52. dnsPolicy: Default # Don't use cluster DNS.