From 4ad0ee5f46b6b1e666690c708906bf74a54c8c14 Mon Sep 17 00:00:00 2001 From: geisterfurz007 Date: Fri, 23 Feb 2024 19:00:11 +0100 Subject: [PATCH] feat: persistent media storage --- deployment/helm/templates/cms/deployment.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/deployment/helm/templates/cms/deployment.yaml b/deployment/helm/templates/cms/deployment.yaml index 77ef7933..e01c3a79 100644 --- a/deployment/helm/templates/cms/deployment.yaml +++ b/deployment/helm/templates/cms/deployment.yaml @@ -26,6 +26,9 @@ spec: httpGet: path: /admin port: 3001 + volumeMounts: + - mountPath: /app/packages/cms/dist/media + name: cms-media-upload env: - name: ENABLE_DATASEEDER value: "true" @@ -51,3 +54,22 @@ spec: secretKeyRef: name: ytf-typesense-secret key: TYPESENSE_API_KEY + volumes: + - name: cms-media-upload + persistentVolumeClaim: + claimName: cms-media-upload + +--- + +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + name: cms-media-upload + namespace: {{ .Release.Namespace }} +spec: + storageClassName: microk8s.io/hostpath + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 4Gi