From 8d7e017109ed74d47828aaaa3c467145640ad25c Mon Sep 17 00:00:00 2001 From: sHa Date: Mon, 24 Aug 2026 02:49:12 +0300 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_01566weDFku8TaRC2CJUPVM1 --- adguardhome/Chart.yaml | 2 +- adguardhome/templates/deployment.yaml | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/adguardhome/Chart.yaml b/adguardhome/Chart.yaml index 6670d3e..8d5a793 100644 --- a/adguardhome/Chart.yaml +++ b/adguardhome/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: adguardhome description: AdGuard Home DNS server Helm chart type: application -version: 0.1.7 +version: 0.1.8 appVersion: "0.107.79" annotations: version-source: github-release:AdguardTeam/AdGuardHome diff --git a/adguardhome/templates/deployment.yaml b/adguardhome/templates/deployment.yaml index b9931b0..e019b34 100644 --- a/adguardhome/templates/deployment.yaml +++ b/adguardhome/templates/deployment.yaml @@ -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: