mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
143 lines
3.8 KiB
YAML
143 lines
3.8 KiB
YAML
---
|
|
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: &app jellyfin
|
|
namespace: default
|
|
spec:
|
|
interval: 30m
|
|
chart:
|
|
spec:
|
|
chart: app-template
|
|
version: 2.4.0
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: bjw-s
|
|
namespace: flux-system
|
|
maxHistory: 2
|
|
install:
|
|
createNamespace: true
|
|
remediation:
|
|
retries: 3
|
|
upgrade:
|
|
cleanupOnFail: true
|
|
remediation:
|
|
retries: 3
|
|
uninstall:
|
|
keepHistory: false
|
|
values:
|
|
defaultPodOptions:
|
|
enableServiceLinks: false
|
|
nodeSelector:
|
|
intel.feature.node.kubernetes.io/gpu: "true"
|
|
securityContext:
|
|
runAsUser: 568
|
|
runAsGroup: 568
|
|
fsGroup: 568
|
|
fsGroupChangePolicy: OnRootMismatch
|
|
controllers:
|
|
main:
|
|
type: statefulset
|
|
annotations:
|
|
reloader.stakater.com/auto: "true"
|
|
containers:
|
|
main:
|
|
image:
|
|
repository: ghcr.io/onedr0p/jellyfin
|
|
tag: 10.8.11@sha256:926e2a9f6677a0c7b12feba29f36c954154869318d6a52df72f72ff9c74cf494
|
|
env:
|
|
DOTNET_SYSTEM_IO_DISABLEFILELOCKING: "true"
|
|
JELLYFIN_FFmpeg__probesize: 50000000
|
|
JELLYFIN_FFmpeg__analyzeduration: 50000000
|
|
JELLYFIN_PublishedServerUrl: &loadBalancerIP ${CLUSTER_LB_JELLYFIN}
|
|
TZ: ${TIMEZONE}
|
|
probes:
|
|
liveness: &probes
|
|
enabled: true
|
|
custom: true
|
|
spec:
|
|
httpGet:
|
|
path: /health
|
|
port: &port 8096
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
failureThreshold: 3
|
|
readiness: *probes
|
|
startup:
|
|
enabled: false
|
|
resources:
|
|
requests:
|
|
gpu.intel.com/i915: 1
|
|
cpu: 100m
|
|
memory: 512Mi
|
|
limits:
|
|
gpu.intel.com/i915: 1
|
|
memory: 4Gi
|
|
statefulset:
|
|
volumeClaimTemplates:
|
|
- name: config
|
|
accessMode: ReadWriteOnce
|
|
size: 50Gi
|
|
storageClass: rook-ceph-block
|
|
globalMounts:
|
|
- path: /config
|
|
service:
|
|
main:
|
|
type: LoadBalancer
|
|
loadBalancerIP: *loadBalancerIP
|
|
externalTrafficPolicy: Local
|
|
ports:
|
|
http:
|
|
port: 8096
|
|
ingress:
|
|
main:
|
|
enabled: true
|
|
className: "nginx"
|
|
annotations:
|
|
hajimari.io/icon: simple-icons:jellyfin
|
|
hosts:
|
|
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
|
|
paths:
|
|
- path: /
|
|
service:
|
|
name: main
|
|
port: http
|
|
tls:
|
|
- hosts:
|
|
- *host
|
|
persistence:
|
|
music:
|
|
enabled: true
|
|
type: nfs
|
|
server: "${LOCAL_LAN_TRUENAS}"
|
|
path: /mnt/storage/music
|
|
globalMounts:
|
|
- path: /mnt/storage/music
|
|
photo:
|
|
enabled: true
|
|
type: nfs
|
|
server: "${LOCAL_LAN_TRUENAS}"
|
|
path: /mnt/storage/photo
|
|
mountPath: /mnt/storage/photo
|
|
globalMounts:
|
|
- path: /mnt/storage/photo
|
|
video:
|
|
enabled: true
|
|
type: nfs
|
|
server: "${LOCAL_LAN_TRUENAS}"
|
|
path: /mnt/storage/video
|
|
globalMounts:
|
|
- path: /mnt/storage/video
|
|
transcode:
|
|
enabled: true
|
|
type: emptyDir
|
|
globalMounts:
|
|
- path: /transcode
|
|
cache:
|
|
enabled: true
|
|
type: emptyDir
|
|
globalMounts:
|
|
- path: /cache
|