54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
|
|
---
|
||
|
|
apiVersion: v1
|
||
|
|
kind: PersistentVolumeClaim
|
||
|
|
metadata:
|
||
|
|
name: pixelfed-app-storage
|
||
|
|
namespace: pixelfed-application
|
||
|
|
labels:
|
||
|
|
app: pixelfed
|
||
|
|
# Enable S3 backup with correct Longhorn labels (daily + weekly)
|
||
|
|
recurring-job.longhorn.io/source: "enabled"
|
||
|
|
recurring-job-group.longhorn.io/longhorn-s3-backup: "enabled"
|
||
|
|
recurring-job-group.longhorn.io/longhorn-s3-backup-weekly: "enabled"
|
||
|
|
spec:
|
||
|
|
accessModes:
|
||
|
|
- ReadWriteMany # Both web and worker need access
|
||
|
|
resources:
|
||
|
|
requests:
|
||
|
|
storage: 10Gi
|
||
|
|
storageClassName: longhorn-retain
|
||
|
|
---
|
||
|
|
apiVersion: v1
|
||
|
|
kind: PersistentVolumeClaim
|
||
|
|
metadata:
|
||
|
|
name: pixelfed-cache-storage
|
||
|
|
namespace: pixelfed-application
|
||
|
|
labels:
|
||
|
|
app: pixelfed
|
||
|
|
# No backup needed for cache
|
||
|
|
spec:
|
||
|
|
accessModes:
|
||
|
|
- ReadWriteMany # Both web and worker need access
|
||
|
|
resources:
|
||
|
|
requests:
|
||
|
|
storage: 5Gi
|
||
|
|
storageClassName: longhorn-retain
|
||
|
|
---
|
||
|
|
apiVersion: v1
|
||
|
|
kind: PersistentVolumeClaim
|
||
|
|
metadata:
|
||
|
|
name: pixelfed-env-storage
|
||
|
|
namespace: pixelfed-application
|
||
|
|
labels:
|
||
|
|
app: pixelfed
|
||
|
|
# Enable S3 backup for environment config (daily + weekly)
|
||
|
|
recurring-job.longhorn.io/source: "enabled"
|
||
|
|
recurring-job-group.longhorn.io/longhorn-s3-backup: "enabled"
|
||
|
|
recurring-job-group.longhorn.io/longhorn-s3-backup-weekly: "enabled"
|
||
|
|
spec:
|
||
|
|
accessModes:
|
||
|
|
- ReadWriteMany # Both web and worker need access
|
||
|
|
resources:
|
||
|
|
requests:
|
||
|
|
storage: 1Gi
|
||
|
|
storageClassName: longhorn-retain
|