done tick version bump, fixed bug with adguard

This commit is contained in:
Richard Tomik
2026-09-15 12:14:12 +02:00
parent 5497301740
commit 7438b18313
2 changed files with 26 additions and 1 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: adguard-home name: adguard-home
description: AdGuard Home helm chart for Kubernetes - Network-wide ad and tracker blocking DNS server description: AdGuard Home helm chart for Kubernetes - Network-wide ad and tracker blocking DNS server
type: application type: application
version: 0.0.1 version: 0.0.2
appVersion: "v0.107.79" appVersion: "v0.107.79"
maintainers: maintainers:
- name: Richard Tomik - name: Richard Tomik

View File

@ -31,6 +31,31 @@ spec:
{{- end }} {{- end }}
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- 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: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
securityContext: securityContext: