2016-03-18 14:07:33 +00:00
|
|
|
---
|
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: DaemonSet
|
|
|
|
metadata:
|
|
|
|
name: dnsmasq
|
|
|
|
namespace: kube-system
|
|
|
|
labels:
|
|
|
|
k8s-app: dnsmasq
|
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
k8s-app: dnsmasq
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: dnsmasq
|
2016-10-14 21:46:44 +00:00
|
|
|
image: "{{ dnsmasq_image_repo }}:{{ dnsmasq_image_tag }}"
|
2016-11-22 15:16:04 +00:00
|
|
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
2016-03-18 14:07:33 +00:00
|
|
|
command:
|
|
|
|
- dnsmasq
|
|
|
|
args:
|
|
|
|
- -k
|
|
|
|
- "-7"
|
|
|
|
- /etc/dnsmasq.d
|
|
|
|
securityContext:
|
|
|
|
capabilities:
|
|
|
|
add:
|
|
|
|
- NET_ADMIN
|
2016-09-20 08:32:05 +00:00
|
|
|
imagePullPolicy: IfNotPresent
|
2016-03-18 14:07:33 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
2016-11-25 10:33:39 +00:00
|
|
|
cpu: {{ dns_cpu_limit }}
|
|
|
|
memory: {{ dns_memory_limit }}
|
|
|
|
requests:
|
|
|
|
cpu: {{ dns_cpu_requests }}
|
|
|
|
memory: {{ dns_memory_requests }}
|
2016-03-18 14:07:33 +00:00
|
|
|
ports:
|
|
|
|
- name: dns
|
|
|
|
containerPort: 53
|
|
|
|
protocol: UDP
|
|
|
|
- name: dns-tcp
|
|
|
|
containerPort: 53
|
|
|
|
protocol: TCP
|
|
|
|
volumeMounts:
|
|
|
|
- name: etcdnsmasqd
|
|
|
|
mountPath: /etc/dnsmasq.d
|
|
|
|
- name: etcdnsmasqdavailable
|
|
|
|
mountPath: /etc/dnsmasq.d-available
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: etcdnsmasqd
|
|
|
|
hostPath:
|
|
|
|
path: /etc/dnsmasq.d
|
|
|
|
- name: etcdnsmasqdavailable
|
|
|
|
hostPath:
|
|
|
|
path: /etc/dnsmasq.d-available
|
2016-09-22 17:14:51 +00:00
|
|
|
dnsPolicy: Default # Don't use cluster DNS.
|