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,6 +100,17 @@ 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
|
||||||
|
@ -123,6 +134,8 @@ spec:
|
||||||
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:
|
||||||
|
@ -134,6 +147,8 @@ spec:
|
||||||
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