indent update; initcontainer for root hints

This commit is contained in:
j 2025-07-01 11:31:57 +10:00
parent f59f82e778
commit 398257eb6c

View file

@ -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