Skip to content

Commit

Permalink
feat: persistent media storage
Browse files Browse the repository at this point in the history
  • Loading branch information
mvarendorff committed Feb 23, 2024
1 parent 84dd078 commit 4ad0ee5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions deployment/helm/templates/cms/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

0 comments on commit 4ad0ee5

Please sign in to comment.