Browse Source

make media storage persistent

master
sseneca 2 years ago
parent
commit
72e4b63250
  1. 6
      dendrite/deployment.yaml
  2. 35
      dendrite/storage-media.yaml

6
dendrite/deployment.yaml

@ -27,9 +27,15 @@ spec:
- mountPath: /etc/dendrite
name: encryption-secrets
readOnly: true
- mountPath: /var/dendrite/media
name: media
readOnly: false
restartPolicy: Always
volumes:
- name: encryption-secrets
secret:
secretName: encryption-secrets
- name: media
persistentVolumeClaim:
claimName: dendrite-media
status: {}

35
dendrite/storage-media.yaml

@ -0,0 +1,35 @@
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: dendrite-media
spec:
storageClassName: local-path
capacity:
storage: 5Gi
accessModes:
- ReadWriteOnce
local:
path: /srv/smb/media/dendrite-media
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- sserver
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: dendrite-media
namespace: dendrite
spec:
storageClassName: local-path
volumeName: dendrite-media
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
Loading…
Cancel
Save