mirror of
https://github.com/shadoll/helm-charts.git
synced 2026-08-28 03:27:08 +00:00
Fix adguardhome PVC mount shadowing the binary
Mounting the whole PVC at /opt/adguardhome hid the AdGuardHome binary that ships inside the image at that exact path, crash-looping the pod (exec: /opt/adguardhome/AdGuardHome: no such file or directory). Use subPath mounts for work/ and conf/ instead, same as the original split hostPath layout, just backed by one PVC now. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01566weDFku8TaRC2CJUPVM1
This commit is contained in:
@@ -46,8 +46,15 @@ spec:
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
volumeMounts:
|
||||
# subPath mounts, not the whole /opt/adguardhome -- the AdGuardHome
|
||||
# binary itself ships inside the image at /opt/adguardhome/AdGuardHome,
|
||||
# so mounting the entire parent directory shadows it.
|
||||
- name: data
|
||||
mountPath: /opt/adguardhome
|
||||
mountPath: /opt/adguardhome/work
|
||||
subPath: work
|
||||
- name: data
|
||||
mountPath: /opt/adguardhome/conf
|
||||
subPath: conf
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
|
||||
Reference in New Issue
Block a user