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.

49 lines
1.0 KiB

8 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. protocol: UDP
  33. - name: dns-tcp
  34. containerPort: 53
  35. hostPort: 53
  36. protocol: TCP
  37. volumeMounts:
  38. - name: etcdnsmasqd
  39. mountPath: /etc/dnsmasq.d
  40. - name: etcdnsmasqdavailable
  41. mountPath: /etc/dnsmasq.d-available
  42. volumes:
  43. - name: etcdnsmasqd
  44. hostPath:
  45. path: /etc/dnsmasq.d
  46. - name: etcdnsmasqdavailable
  47. hostPath:
  48. path: /etc/dnsmasq.d-available