From 3b151244082d5d2970c20b048eddf8de43dba7f9 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Wed, 4 Dec 2024 21:14:36 +0100 Subject: [PATCH] feat(meali): add data volume --- meali/kustomization.yaml | 1 + meali/resources/deployment.yaml | 7 +++++++ meali/resources/pvc.yaml | 15 +++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 meali/resources/pvc.yaml diff --git a/meali/kustomization.yaml b/meali/kustomization.yaml index a4241c7..86d36a9 100644 --- a/meali/kustomization.yaml +++ b/meali/kustomization.yaml @@ -12,6 +12,7 @@ resources: - resources/namespace.yaml - resources/db/db.yaml - resources/db/user.yaml + - resources/pvc.yaml - resources/deployment.yaml secretGenerator: diff --git a/meali/resources/deployment.yaml b/meali/resources/deployment.yaml index 4cf9a84..2703b70 100644 --- a/meali/resources/deployment.yaml +++ b/meali/resources/deployment.yaml @@ -37,6 +37,13 @@ spec: requests: cpu: 50m memory: 50Mi + volumeMounts: + - name: meali-data + mountPath: /app/data/ + volumes: + - name: app-data + persistentVolumeClaim: + claimName: meali-data securityContext: runAsUser: 1001 runAsGroup: 1001 diff --git a/meali/resources/pvc.yaml b/meali/resources/pvc.yaml new file mode 100644 index 0000000..e3972a2 --- /dev/null +++ b/meali/resources/pvc.yaml @@ -0,0 +1,15 @@ +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: meali-data + labels: + app.kubernetes.io/name: meali +spec: + storageClassName: hcloud-blob + resources: + requests: + storage: 10Gi + volumeMode: Filesystem + accessModes: + - ReadWriteMany