42 lines
970 B
YAML
42 lines
970 B
YAML
# Keep SoulSync's databases and downloaded artwork on Longhorn so they survive
|
|||
|
|
# Pod replacement (see docs/06-longhorn.md).
|
||
|
|
apiVersion: v1
|
||
|
|
kind: PersistentVolumeClaim
|
||
|
|
metadata:
|
||
|
|
name: soulsync-db
|
||
|
|
namespace: soulsync
|
||
|
|
spec:
|
||
|
|
accessModes:
|
||
|
|
- ReadWriteOnce
|
||
|
|
resources:
|
||
|
|
requests:
|
||
|
|
storage: 10Gi
|
||
|
|
---
|
||
|
|
# Configuration can contain connection settings and OAuth tokens, so persist it
|
||
|
|
# without putting those credentials in this public Git repository.
|
||
|
|
apiVersion: v1
|
||
|
|
kind: PersistentVolumeClaim
|
||
|
|
metadata:
|
||
|
|
name: soulsync-config
|
||
|
|
namespace: soulsync
|
||
|
|
spec:
|
||
|
|
accessModes:
|
||
|
|
- ReadWriteOnce
|
||
|
|
resources:
|
||
|
|
requests:
|
||
|
|
storage: 1Gi
|
||
|
|
---
|
||
|
|
# Persistent logs remain available when the container is recreated and make
|
||
|
|
# failures that happened before a restart easier to diagnose.
|
||
|
|
apiVersion: v1
|
||
|
|
kind: PersistentVolumeClaim
|
||
|
|
metadata:
|
||
|
|
name: soulsync-logs
|
||
|
|
namespace: soulsync
|
||
|
|
spec:
|
||
|
|
accessModes:
|
||
|
|
- ReadWriteOnce
|
||
|
|
resources:
|
||
|
|
requests:
|
||
|
|
storage: 2Gi
|