From a4d7b18c6748862754d2ffa6a9cd7af03f808f16 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Thu, 28 Mar 2024 20:33:05 -0500 Subject: [PATCH] Immich --- .../apps/media/immich/app/helmrelease.yaml | 111 ++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 kubernetes/apps/media/immich/app/helmrelease.yaml diff --git a/kubernetes/apps/media/immich/app/helmrelease.yaml b/kubernetes/apps/media/immich/app/helmrelease.yaml new file mode 100644 index 00000000..998d4215 --- /dev/null +++ b/kubernetes/apps/media/immich/app/helmrelease.yaml @@ -0,0 +1,111 @@ +--- +# 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/v2beta2 +kind: HelmRelease +metadata: + name: &name immich + namespace: default +spec: + interval: 30m + chart: + spec: + chart: app-template + version: 3.0.4 + sourceRef: + kind: HelmRepository + name: bjw-s + namespace: flux-system + install: + remediation: + retries: 3 + upgrade: + cleanupOnFail: true + remediation: + retries: 3 + strategy: rollback + values: + controllers: + jellyfin: + type: statefulset + annotations: + reloader.stakater.com/auto: "true" + containers: + app: + image: + repository: jellyfin/jellyfin + tag: 10.8.13 + env: + NVIDIA_VISIBLE_DEVICES: "all" + NVIDIA_DRIVER_CAPABILITIES: "compute,video,utility" + DOTNET_SYSTEM_IO_DISABLEFILELOCKING: "true" + JELLYFIN_FFmpeg__probesize: 50000000 + JELLYFIN_FFmpeg__analyzeduration: 50000000 + JELLYFIN_PublishedServerUrl: jelly.hsn.dev + TZ: America/Chicago + 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: + cpu: 100m + memory: 512Mi + limits: + memory: 4Gi + pod: + enableServiceLinks: false + securityContext: + runAsUser: 568 + runAsGroup: 568 + fsGroup: 568 + fsGroupChangePolicy: OnRootMismatch + supplementalGroups: [44, 105, 10000] + service: + app: + controller: *name + ports: + http: + port: *port + ingress: + app: + enabled: true + className: external-nginx + annotations: + external-dns.alpha.kubernetes.io/cloudflare-proxied: "true" + external-dns.alpha.kubernetes.io/target: external.hsn.dev + hosts: + - host: &host "jelly.hsn.dev" + paths: + - path: / + service: + identifier: app + port: http + tls: + - hosts: + - *host + persistence: + config: + existingClaim: immich + enabled: true + ml-cache: + type: emptyDir + globalMounts: + - path: /mlcache + media: + enabled: true + type: nfs + server: 10.1.1.12 + path: /eru/media/immich + globalMounts: + - path: /media