indent update; initcontainer for root hints
This commit is contained in:
parent
f59f82e778
commit
398257eb6c
1 changed files with 47 additions and 32 deletions
|
@ -100,40 +100,55 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 999
|
fsGroup: 999
|
||||||
|
initContainers:
|
||||||
|
- name: fetch-root-hints
|
||||||
|
image: curlimages/curl:latest
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- >
|
||||||
|
curl -o /hints/root.hints https://www.internic.net/domain/named.cache
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /hints
|
||||||
|
name: root-hints
|
||||||
containers:
|
containers:
|
||||||
- name: bind-master
|
- name: bind-master
|
||||||
image: internetsystemsconsortium/bind9:9.18
|
image: internetsystemsconsortium/bind9:9.18
|
||||||
command: ["named", "-g", "-c", "/etc/bind/named.conf"]
|
command: ["named", "-g", "-c", "/etc/bind/named.conf"]
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 53
|
- containerPort: 53
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
- containerPort: 53
|
- containerPort: 53
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /etc/bind/named.conf
|
mountPath: /etc/bind/named.conf
|
||||||
subPath: named.conf
|
subPath: named.conf
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /etc/bind/db.hxme.net
|
mountPath: /etc/bind/db.hxme.net
|
||||||
subPath: db.hxme.net
|
subPath: db.hxme.net
|
||||||
- name: dns-secrets
|
- name: dns-secrets
|
||||||
mountPath: /etc/bind/externaldns-key.conf
|
mountPath: /etc/bind/externaldns-key.conf
|
||||||
subPath: externaldns-key.conf
|
subPath: externaldns-key.conf
|
||||||
- name: bind-cache
|
- name: bind-cache
|
||||||
mountPath: /var/cache/bind
|
mountPath: /var/cache/bind
|
||||||
- name: bind-rundir
|
- name: bind-rundir
|
||||||
mountPath: /run/named
|
mountPath: /run/named
|
||||||
|
- name: root-hints
|
||||||
|
mountPath: /usr/share/dns
|
||||||
volumes:
|
volumes:
|
||||||
- name: dns-secrets
|
- name: dns-secrets
|
||||||
secret:
|
secret:
|
||||||
secretName: dns-secrets
|
secretName: dns-secrets
|
||||||
- name: config
|
- name: config
|
||||||
configMap:
|
configMap:
|
||||||
name: bind-master-config
|
name: bind-master-config
|
||||||
- name: bind-cache
|
- name: bind-cache
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: bind-rundir
|
- name: bind-rundir
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
- name: root-hints
|
||||||
|
emptyDir: {}
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: DaemonSet
|
kind: DaemonSet
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue