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.

51 lines
1.1 KiB

9 years ago
9 years ago
9 years ago
  1. ---
  2. apiVersion: v1
  3. kind: Pod
  4. metadata:
  5. name: dnsmasq
  6. namespace: kube-system
  7. spec:
  8. hostNetwork: true
  9. containers:
  10. - name: dnsmasq
  11. image: andyshinn/dnsmasq:2.72
  12. command:
  13. - dnsmasq
  14. args:
  15. - -k
  16. - "-7"
  17. - /etc/dnsmasq.d
  18. - --local-service
  19. securityContext:
  20. capabilities:
  21. add:
  22. - NET_ADMIN
  23. imagePullPolicy: Always
  24. resources:
  25. limits:
  26. cpu: 100m
  27. memory: 256M
  28. ports:
  29. - name: dns
  30. containerPort: 53
  31. hostPort: 53
  32. hostIP: 127.0.0.1
  33. protocol: UDP
  34. - name: dns-tcp
  35. containerPort: 53
  36. hostIP: 127.0.0.1
  37. hostPort: 53
  38. protocol: TCP
  39. volumeMounts:
  40. - name: etcdnsmasqd
  41. mountPath: /etc/dnsmasq.d
  42. - name: etcdnsmasqdavailable
  43. mountPath: /etc/dnsmasq.d-available
  44. volumes:
  45. - name: etcdnsmasqd
  46. hostPath:
  47. path: /etc/dnsmasq.d
  48. - name: etcdnsmasqdavailable
  49. hostPath:
  50. path: /etc/dnsmasq.d-available