mirror of
https://github.com/rtomik/helm-charts.git
synced 2026-08-22 14:53:51 +00:00
done tick version bump, fixed bug with adguard
This commit is contained in:
@ -2,7 +2,7 @@ apiVersion: v2
|
||||
name: adguard-home
|
||||
description: AdGuard Home helm chart for Kubernetes - Network-wide ad and tracker blocking DNS server
|
||||
type: application
|
||||
version: 0.0.1
|
||||
version: 0.0.2
|
||||
appVersion: "v0.107.79"
|
||||
maintainers:
|
||||
- name: Richard Tomik
|
||||
|
||||
@ -31,6 +31,31 @@ spec:
|
||||
{{- end }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||
{{- if .Values.persistence.conf.enabled }}
|
||||
initContainers:
|
||||
- name: init-config
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
# AdGuard Home's first-run setup wizard defaults the admin web interface
|
||||
# port to 80, regardless of ports.web.port below - if a user accepts that
|
||||
# default, the Service/Ingress (which forward to ports.web.port) end up
|
||||
# pointing at the wrong container port and the UI becomes unreachable
|
||||
# (502/Bad Gateway) as soon as setup completes. Seeding http.address here
|
||||
# before the wizard ever runs makes it pre-fill the correct port instead.
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
if [ ! -f /opt/adguardhome/conf/AdGuardHome.yaml ]; then
|
||||
cat > /opt/adguardhome/conf/AdGuardHome.yaml <<'CONF'
|
||||
http:
|
||||
address: 0.0.0.0:{{ .Values.ports.web.port }}
|
||||
CONF
|
||||
fi
|
||||
volumeMounts:
|
||||
- name: conf
|
||||
mountPath: /opt/adguardhome/conf
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
securityContext:
|
||||
|
||||
Reference in New Issue
Block a user