Increase matrix user media PV (in-progres)

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2023-04-13 18:10:14 +01:00
parent 2e13637388
commit 2d5902ac7f
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
2 changed files with 70 additions and 12 deletions

View File

@ -457,6 +457,21 @@ spec:
- name: signing-key
mountPath: /data/keys
containers:
- name: copy-media
image: "bash"
imagePullPolicy: IfNotPresent
command:
- bash
- -c
- |
cp -R /data/old /data/new
echo "Done"
sleep 9999
volumeMounts:
- name: media-store
mountPath: /data/old
- name: user-media
mountPath: /data/new
- name: "synapse"
image: "matrixdotorg/synapse:v1.71.0"
imagePullPolicy: IfNotPresent
@ -474,12 +489,12 @@ spec:
- name: mautrix-whatsapp-registration
mountPath: /data/mautrix-whatsapp-registration.yaml
subPath: registration.yaml
- name: mautrix-signal-registration
mountPath: /data/mautrix-signal-registration.yaml
subPath: registration.yaml
- name: mautrix-telegram-registration
mountPath: /data/mautrix-telegram-registration.yaml
subPath: registration.yaml
# - name: mautrix-signal-registration
# mountPath: /data/mautrix-signal-registration.yaml
# subPath: registration.yaml
# - name: mautrix-telegram-registration
# mountPath: /data/mautrix-telegram-registration.yaml
# subPath: registration.yaml
- name: synapse-config-logging
mountPath: /data/matrix.cluster.fun.log.config
subPath: matrix.cluster.fun.log.config
@ -526,18 +541,21 @@ spec:
- name: mautrix-whatsapp-registration
secret:
secretName: mautrix-whatsapp-registration
- name: mautrix-signal-registration
secret:
secretName: mautrix-signal-registration
- name: mautrix-telegram-registration
secret:
secretName: mautrix-telegram-registration
# - name: mautrix-signal-registration
# secret:
# secretName: mautrix-signal-registration
# - name: mautrix-telegram-registration
# secret:
# secretName: mautrix-telegram-registration
- name: signing-key
persistentVolumeClaim:
claimName: chat-matrix-signing-key
- name: media-store
persistentVolumeClaim:
claimName: chat-matrix-media-store
- name: user-media
persistentVolumeClaim:
claimName: chat-matrix-user-media
- name: uploads
emptyDir: {}
- name: tmp

View File

@ -40,6 +40,46 @@ spec:
---
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
pv.kubernetes.io/provisioned-by: csi.scaleway.com
finalizers:
- kubernetes.io/pv-protection
- external-attacher/csi-scaleway-com
name: pvc-470f5860-49e0-414c-bb36-329970afc44b
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 12Gi
csi:
driver: csi.scaleway.com
fsType: ext4
volumeAttributes:
storage.kubernetes.io/csiProvisionerIdentity: 1676472026170-8081-csi.scaleway.com
volumeHandle: fr-par-1/5e73e304-11e8-42cb-90fe-361889089d2d
persistentVolumeReclaimPolicy: Retain
storageClassName: scw-bssd
volumeMode: Filesystem
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: chat-matrix-user-media
namespace: chat
labels:
app.kubernetes.io/name: "matrix"
component: synapse
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 12Gi
volumeName: pvc-470f5860-49e0-414c-bb36-329970afc44b
---
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
pv.kubernetes.io/provisioned-by: csi.scaleway.com