Files
infrastructure/clusters/cl01tl/applications/jellyplist/values.yaml
2024-11-24 00:21:46 -06:00

256 lines
7.7 KiB
YAML

jellyplist:
controllers:
main:
type: deployment
replicas: 1
strategy: Recreate
revisionHistoryLimit: 3
containers:
main:
image:
repository: ghcr.io/kamilkosek/jellyplist
tag: 0.1.5
pullPolicy: IfNotPresent
env:
- name: SECRET_KEY
valueFrom:
secretKeyRef:
name: jellyplist-secret
key: secret-key
- name: JELLYFIN_SERVER_URL
value: https://jellyfin-main.jellyfin:80
- name: JELLYFIN_ADMIN_USER
value: jellyplist
- name: JELLYFIN_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: jellyplist-secret
key: jellyfin-admin-password
- name: SPOTIFY_CLIENT_ID
valueFrom:
secretKeyRef:
name: jellyplist-secret
key: spotify-client-id
- name: SPOTIFY_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: jellyplist-secret
key: spotify-client-secret
- name: REDIS_URL
value: redis://valkey.jellyplist:6379/0
- name: JELLYPLIST_DB_USER
valueFrom:
secretKeyRef:
name: jellyplist-postgresql-16-cluster-app
key: username
- name: JELLYPLIST_DB_PASSWORD
valueFrom:
secretKeyRef:
name: jellyplist-postgresql-16-cluster-app
key: password
- name: JELLYPLIST_DB
valueFrom:
secretKeyRef:
name: jellyplist-postgresql-16-cluster-app
key: dbname
- name: JELLYPLIST_DB_HOST
valueFrom:
secretKeyRef:
name: jellyplist-postgresql-16-cluster-app
key: host
resources:
requests:
cpu: 100m
memory: 256Mi
worker:
image:
repository: ghcr.io/kamilkosek/jellyplist
tag: 0.1.5
pullPolicy: IfNotPresent
args:
- celery
- -A
- app.celery
- worker
- --loglevel=info
env:
- name: SECRET_KEY
valueFrom:
secretKeyRef:
name: jellyplist-secret
key: secret-key
- name: JELLYFIN_SERVER_URL
value: https://jellyfin-main.jellyfin:80
- name: JELLYFIN_ADMIN_USER
value: jellyplist
- name: JELLYFIN_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: jellyplist-secret
key: jellyfin-admin-password
- name: SPOTIFY_CLIENT_ID
valueFrom:
secretKeyRef:
name: jellyplist-secret
key: spotify-client-id
- name: SPOTIFY_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: jellyplist-secret
key: spotify-client-secret
- name: REDIS_URL
value: redis://valkey.jellyplist:6379/0
- name: JELLYPLIST_DB_USER
valueFrom:
secretKeyRef:
name: jellyplist-postgresql-16-cluster-app
key: username
- name: JELLYPLIST_DB_PASSWORD
valueFrom:
secretKeyRef:
name: jellyplist-postgresql-16-cluster-app
key: password
- name: JELLYPLIST_DB
valueFrom:
secretKeyRef:
name: jellyplist-postgresql-16-cluster-app
key: dbname
- name: JELLYPLIST_DB_HOST
valueFrom:
secretKeyRef:
name: jellyplist-postgresql-16-cluster-app
key: host
resources:
requests:
cpu: 100m
memory: 256Mi
beat:
image:
repository: ghcr.io/kamilkosek/jellyplist
tag: 0.1.5
pullPolicy: IfNotPresent
args:
- celery
- -A
- app.celery
- beat
- --loglevel=info
env:
- name: SECRET_KEY
valueFrom:
secretKeyRef:
name: jellyplist-secret
key: secret-key
- name: JELLYFIN_SERVER_URL
value: https://jellyfin-main.jellyfin:80
- name: JELLYFIN_ADMIN_USER
value: jellyplist
- name: JELLYFIN_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: jellyplist-secret
key: jellyfin-admin-password
- name: SPOTIFY_CLIENT_ID
valueFrom:
secretKeyRef:
name: jellyplist-secret
key: spotify-client-id
- name: SPOTIFY_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: jellyplist-secret
key: spotify-client-secret
- name: REDIS_URL
value: redis://valkey.jellyplist:6379/0
- name: JELLYPLIST_DB_USER
valueFrom:
secretKeyRef:
name: jellyplist-postgresql-16-cluster-app
key: username
- name: JELLYPLIST_DB_PASSWORD
valueFrom:
secretKeyRef:
name: jellyplist-postgresql-16-cluster-app
key: password
- name: JELLYPLIST_DB
valueFrom:
secretKeyRef:
name: jellyplist-postgresql-16-cluster-app
key: dbname
- name: JELLYPLIST_DB_HOST
valueFrom:
secretKeyRef:
name: jellyplist-postgresql-16-cluster-app
key: host
resources:
requests:
cpu: 100m
memory: 256Mi
serviceAccount:
create: true
service:
main:
controller: main
ports:
http:
port: 5055
targetPort: 5055
protocol: HTTP
ingress:
tailscale:
enabled: true
className: tailscale
hosts:
- host: jellyplist-cl01tl
paths:
- path: /
pathType: Prefix
service:
name: jellyplist
port: 5055
tls:
- hosts:
- jellyplist-cl01tl
persistence:
cookies:
enabled: true
type: secret
name: jellyplist-secret
advancedMounts:
main:
main:
- path: /jellyplist/cookies.txt
readOnly: true
mountPropagation: None
subPath: cookies.txt
music:
existingClaim: jellyplist-nfs-storage
advancedMounts:
main:
main:
- path: /jellyplist_downloads
readOnly: true
postgres-16-cluster:
mode: standalone
cluster:
walStorage:
storageClass: local-path
storage:
storageClass: local-path
monitoring:
enabled: true
prometheusRule:
enabled: false
backup:
enabled: true
endpointURL: https://s3.us-east-2.amazonaws.com
destinationPath: s3://cl01tl-postgresql-backups/jellyplist
endpointCredentials: jellyplist-postgresql-16-cluster-backup-secret
backupIndex: 1
tags:
backupRetentionPolicy: "expire"
user: "cl01tl-jellyplist-postgresql"
historyTags:
backupRetentionPolicy: "keep"
user: "cl01tl-jellyplist-postgresql"