From f0e2c8a1bdd07cfe9455af35d8f86e039f951016 Mon Sep 17 00:00:00 2001
From: Georgi Todorov <georgi.todorov@cleverpine.com>
Date: Thu, 17 Aug 2023 13:41:40 +0000
Subject: [PATCH] Update deployment.yaml

---
 templates/deployment.yaml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/templates/deployment.yaml b/templates/deployment.yaml
index e1f8647..d2721f7 100644
--- a/templates/deployment.yaml
+++ b/templates/deployment.yaml
@@ -27,6 +27,11 @@ spec:
 {{ toYaml .Values.podAnnotations | indent 8 }}
 {{- end }}
     spec:
+      volumes:
+        - name: mnt
+          configMap:
+            name: caddy
+            defaultMode: 420
       securityContext:
 {{- include "app.securitycontext" . | nindent 8 }}
       imagePullSecrets:
@@ -39,6 +44,9 @@ spec:
 {{- if .Values.extraVars }}
 {{ toYaml .Values.extraVars | indent 8 }}
 {{- end }}
+        volumeMounts:
+            - name: mnt
+              mountPath: /etc/caddy
         ports:
         {{- if .Values.metrics.enabled }}
         - name: monitoring
-- 
GitLab