From 332abdf00b83bdb4e7821460aaef91ec89104ba1 Mon Sep 17 00:00:00 2001 From: Martyn Date: Mon, 4 Dec 2023 17:05:31 +0000 Subject: [PATCH] Mounting on root is hard --- apps-helm/wg-access-server/templates/deployment.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps-helm/wg-access-server/templates/deployment.yaml b/apps-helm/wg-access-server/templates/deployment.yaml index 7498c54..58ffc5b 100644 --- a/apps-helm/wg-access-server/templates/deployment.yaml +++ b/apps-helm/wg-access-server/templates/deployment.yaml @@ -67,6 +67,10 @@ spec: name: "{{ $secretName }}" key: adminPassword {{- end}} + {{- if .Values.config.csiSecretsStore }} + - name: WG_CONFIG + value: /secret/config.yaml + {{- end}} volumeMounts: - name: tun mountPath: /dev/net/tun @@ -74,7 +78,7 @@ spec: mountPath: /data {{- if .Values.config.csiSecretsStore }} - name: config - mountPath: /config.yaml + mountPath: /secrets {{- else }} - name: config mountPath: /config.yaml