Use alpine not stupid curl images
This commit is contained in:
parent
430ec99d49
commit
d7c48e1058
1 changed files with 5 additions and 4 deletions
|
@ -102,17 +102,18 @@ spec:
|
||||||
fsGroup: 999 # allow group access to volumes for named user
|
fsGroup: 999 # allow group access to volumes for named user
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: fetch-root-hints
|
- name: fetch-root-hints
|
||||||
image: curlimages/curl:latest
|
image: alpine:latest
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
|
apk add --no-cache curl && \
|
||||||
curl -sfSL https://www.internic.net/domain/named.cache -o /usr/share/dns/root.hints
|
curl -sfSL https://www.internic.net/domain/named.cache -o /usr/share/dns/root.hints
|
||||||
# hold container open for debug (optional)
|
# Uncomment below to hold the container open for debugging:
|
||||||
# tail -f /dev/null
|
# tail -f /dev/null
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /usr/share/dns
|
- mountPath: /usr/share/dns
|
||||||
name: root-hints
|
name: root-hints
|
||||||
containers:
|
containers:
|
||||||
- name: bind-master
|
- name: bind-master
|
||||||
image: internetsystemsconsortium/bind9:9.18
|
image: internetsystemsconsortium/bind9:9.18
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue