From f7ee688caeb5a7f7576031e0f7a617344bce0969 Mon Sep 17 00:00:00 2001
From: gifrerenom <lluis.gifre@cttc.es>
Date: Tue, 10 Dec 2024 17:49:18 +0000
Subject: [PATCH] WebUI component:

- Persist Grafana settings between restarts
---
 manifests/webuiservice.yaml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/manifests/webuiservice.yaml b/manifests/webuiservice.yaml
index 4d3b7780c..5a321c33e 100644
--- a/manifests/webuiservice.yaml
+++ b/manifests/webuiservice.yaml
@@ -12,6 +12,17 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+  name: grafana-pvc
+spec:
+  accessModes:
+    - ReadWriteOnce
+  resources:
+    requests:
+      storage: 1Gi
+---
 apiVersion: apps/v1
 kind: Deployment
 metadata:
@@ -99,6 +110,13 @@ spec:
             limits:
               cpu: 500m
               memory: 1024Mi
+          volumeMounts:
+            - mountPath: /var/lib/grafana
+              name: grafana-pv
+      volumes:
+        - name: grafana-pv
+          persistentVolumeClaim:
+            claimName: grafana-pvc
 ---
 apiVersion: v1
 kind: Service
-- 
GitLab