155 lines
3.8 KiB
YAML
155 lines
3.8 KiB
YAML
soulsync:
|
|
controllers:
|
|
main:
|
|
type: deployment
|
|
replicas: 0
|
|
strategy: Recreate
|
|
revisionHistoryLimit: 3
|
|
initContainers:
|
|
init-copy-config:
|
|
image:
|
|
repository: busybox
|
|
tag: 1.37.0
|
|
pullPolicy: IfNotPresent
|
|
resources:
|
|
requests:
|
|
cpu: 10m
|
|
memory: 128Mi
|
|
command:
|
|
- /bin/sh
|
|
- -ec
|
|
- |
|
|
echo ">> Coping files ..."
|
|
ls /tmp
|
|
cp -fv /tmp/config.json /app/config/config.json
|
|
echo ">> Files in config:"
|
|
ls /app/config
|
|
containers:
|
|
main:
|
|
image:
|
|
repository: boulderbadgedad/soulsync
|
|
tag: latest
|
|
pullPolicy: IfNotPresent
|
|
env:
|
|
- name: TZ
|
|
value: US/Central
|
|
- name: PUID
|
|
value: 1000
|
|
- name: PGID
|
|
value: 1000
|
|
- name: FLASK_ENV
|
|
value: production
|
|
- name: PYTHONPATH
|
|
value: /app
|
|
- name: SOULSYNC_CONFIG_PATH
|
|
value: /app/config/config.json
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
custom: true
|
|
spec:
|
|
exec:
|
|
command:
|
|
- CMD
|
|
- curl
|
|
- -f
|
|
- http://localhost:8888/
|
|
failureThreshold: 5
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 30
|
|
successThreshold: 1
|
|
timeoutSeconds: 10
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 512Mi
|
|
service:
|
|
main:
|
|
controller: main
|
|
ports:
|
|
http:
|
|
port: 80
|
|
targetPort: 8008
|
|
protocol: HTTP
|
|
route:
|
|
main:
|
|
kind: HTTPRoute
|
|
parentRefs:
|
|
- group: gateway.networking.k8s.io
|
|
kind: Gateway
|
|
name: traefik-gateway
|
|
namespace: traefik
|
|
hostnames:
|
|
- soulsync.alexlebens.net
|
|
rules:
|
|
- backendRefs:
|
|
- group: ''
|
|
kind: Service
|
|
name: soulsync
|
|
port: 80
|
|
weight: 100
|
|
matches:
|
|
- path:
|
|
type: PathPrefix
|
|
value: /
|
|
persistence:
|
|
secret:
|
|
enabled: true
|
|
type: secret
|
|
name: soulsync-config-secret
|
|
advancedMounts:
|
|
main:
|
|
init-copy-config:
|
|
- path: /tmp/config.json
|
|
readOnly: true
|
|
mountPropagation: None
|
|
subPath: config.json
|
|
config:
|
|
forceRename: soulsync-config
|
|
storageClass: ceph-block
|
|
accessMode: ReadWriteOnce
|
|
size: 10Gi
|
|
advancedMounts:
|
|
main:
|
|
main:
|
|
- path: /app/config
|
|
readOnly: false
|
|
init-copy-config:
|
|
- path: /app/config
|
|
readOnly: false
|
|
database:
|
|
forceRename: soulsync-database
|
|
storageClass: ceph-block
|
|
accessMode: ReadWriteOnce
|
|
size: 10Gi
|
|
advancedMounts:
|
|
main:
|
|
main:
|
|
- path: /app/database
|
|
readOnly: false
|
|
downloads:
|
|
existingClaim: soulsync-slskd-nfs-storage
|
|
advancedMounts:
|
|
main:
|
|
main:
|
|
- path: /app/downloads
|
|
readOnly: false
|
|
transfer:
|
|
type: emptyDir
|
|
advancedMounts:
|
|
main:
|
|
main:
|
|
- path: /app/Transfer
|
|
readOnly: false
|
|
music:
|
|
existingClaim: soulsync-music-nfs-storage
|
|
advancedMounts:
|
|
main:
|
|
main:
|
|
- path: /music
|
|
readOnly: true
|
|
volsync-target-config:
|
|
pvcTarget: soulsync-config
|
|
volsync-target-database:
|
|
pvcTarget: soulsync-database
|