mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
163 lines
4.5 KiB
YAML
163 lines
4.5 KiB
YAML
---
|
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: &app jellyfin
|
|
namespace: default
|
|
spec:
|
|
interval: 30m
|
|
chart:
|
|
spec:
|
|
chart: app-template
|
|
version: 3.2.1
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: bjw-s
|
|
namespace: flux-system
|
|
maxHistory: 2
|
|
install:
|
|
createNamespace: true
|
|
remediation:
|
|
retries: 3
|
|
upgrade:
|
|
cleanupOnFail: true
|
|
remediation:
|
|
strategy: rollback
|
|
retries: 3
|
|
uninstall:
|
|
keepHistory: false
|
|
values:
|
|
defaultPodOptions:
|
|
affinity:
|
|
nodeAffinity:
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
- weight: 1
|
|
preference:
|
|
matchExpressions:
|
|
# Intel N100
|
|
- key: feature.node.kubernetes.io/cpu-model.id
|
|
operator: In
|
|
values:
|
|
- "190"
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
# Intel N100
|
|
- key: feature.node.kubernetes.io/cpu-model.id
|
|
operator: In
|
|
values:
|
|
- "190"
|
|
- key: intel.feature.node.kubernetes.io/gpu
|
|
operator: In
|
|
values:
|
|
- "true"
|
|
enableServiceLinks: false
|
|
securityContext:
|
|
runAsUser: 568
|
|
runAsGroup: 568
|
|
fsGroup: 568
|
|
fsGroupChangePolicy: OnRootMismatch
|
|
controllers:
|
|
jellyfin:
|
|
annotations:
|
|
reloader.stakater.com/auto: "true"
|
|
containers:
|
|
app:
|
|
image:
|
|
repository: ghcr.io/jellyfin/jellyfin
|
|
tag: 10.9.6@sha256:918f993047ad43e6f240f78bc83734f6478c673d73cbebd50fdc8802ab05e6a1
|
|
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
|
|
service:
|
|
app:
|
|
controller: *app
|
|
type: LoadBalancer
|
|
loadBalancerIP: 192.168.169.110
|
|
externalTrafficPolicy: Local
|
|
ports:
|
|
http:
|
|
port: 8096
|
|
ingress:
|
|
app:
|
|
enabled: true
|
|
className: nginx
|
|
annotations:
|
|
external-dns.alpha.kubernetes.io/enabled: "true"
|
|
external-dns.alpha.kubernetes.io/target: services.${SECRET_DOMAIN}.
|
|
hajimari.io/icon: simple-icons:jellyfin
|
|
hosts:
|
|
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
|
|
paths:
|
|
- path: /
|
|
service:
|
|
identifier: app
|
|
port: http
|
|
tls:
|
|
- hosts:
|
|
- *host
|
|
persistence:
|
|
config:
|
|
enabled: true
|
|
existingClaim: *app
|
|
globalMounts:
|
|
- path: /config
|
|
music:
|
|
enabled: true
|
|
type: nfs
|
|
server: 192.168.9.10
|
|
path: /var/mnt/vol1/music
|
|
globalMounts:
|
|
- path: /mnt/storage/music
|
|
photo:
|
|
enabled: true
|
|
type: nfs
|
|
server: 192.168.9.10
|
|
path: /var/mnt/vol1/photo
|
|
globalMounts:
|
|
- path: /mnt/storage/photo
|
|
video:
|
|
enabled: true
|
|
type: nfs
|
|
server: 192.168.9.10
|
|
path: /var/mnt/vol1/video
|
|
globalMounts:
|
|
- path: /mnt/storage/video
|
|
transcode:
|
|
enabled: true
|
|
type: emptyDir
|
|
globalMounts:
|
|
- path: /transcode
|
|
cache:
|
|
enabled: true
|
|
type: emptyDir
|
|
globalMounts:
|
|
- path: /cache
|