Testing quicksync

This commit is contained in:
Joseph Hanson 2023-12-02 09:50:30 -06:00
parent 2e83f419ea
commit 36dde62657
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
5 changed files with 173 additions and 0 deletions

View file

@ -0,0 +1,117 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/helm.toolkit.fluxcd.io/helmrelease_v2beta1.json
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: jellyfin
namespace: default
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 2.0.3
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
maxHistory: 2
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
dependsOn:
- name: intel-device-plugins-gpu
namespace: kube-system
values:
controllers:
main:
type: statefulset
annotations:
reloader.stakater.com/auto: "true"
containers:
main:
image:
repository: jellyfin/jellyfin
tag: 10.8.13
env:
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:
gpu.intel.com/i915: 1
cpu: 100m
memory: 512Mi
limits:
gpu.intel.com/i915: 1
memory: 4Gi
pod:
enableServiceLinks: false
nodeSelector:
intel.feature.node.kubernetes.io/gpu: "true"
securityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
supplementalGroups: [44, 105, 10000]
statefulset:
volumeClaimTemplates:
- name: config
accessMode: ReadWriteOnce
size: 50Gi
storageClass: local-hostpath
globalMounts:
- path: /config
service:
main:
ports:
http:
port: *port
ingress:
main:
enabled: true
className: hsn-nginx
annotations:
hosts:
- host: &host "jelly.hsn.dev"
paths:
- path: /
service:
name: main
port: http
tls:
- hosts:
- *host
persistence:
transcode:
type: emptyDir
globalMounts:
- path: /transcode
media:
existingClaim: media
globalMounts:
- readOnly: true

View file

@ -0,0 +1,7 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: default
resources:
- ./helmrelease.yaml

View file

@ -0,0 +1,19 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-jellyfin
namespace: flux-system
spec:
dependsOn:
- name: cluster-apps-external-secrets-stores
path: ./kubernetes/apps/default/jellyfin/app
prune: true
sourceRef:
kind: GitRepository
name: valinor
wait: false
interval: 30m
retryInterval: 1m
timeout: 5m

View file

@ -0,0 +1,7 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
# Flux-Kustomizations
- ./jellyfin/ks.yaml

View file

@ -0,0 +1,23 @@
apiVersion: v1
kind: Pod
metadata:
name: ubuntu
namespace: default
spec:
nodeSelector:
intel.feature.node.kubernetes.io/gpu: "true"
containers:
- name: ubuntu
image: ubuntu:latest
securityContext:
privileged: true
command: ["/bin/bash", "-c", "while true; do sleep 10; done"]
resources:
requests:
cpu: 100m
gpu.intel.com/i915: 1
memory: 512Mi
limits:
cpu: 4000m
gpu.intel.com/i915: 1
memory: 8000Mi