Skip to content

Commit

Permalink
fix(kyak): redo jellyfin into deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Witlin <twitlin@witl.xyz>
  • Loading branch information
coolguy1771 committed Jan 2, 2024
1 parent 98ac929 commit c2ea806
Showing 1 changed file with 35 additions and 31 deletions.
66 changes: 35 additions & 31 deletions kubernetes/kyak/apps/media/jellyfin/app/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta1.json
# 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:
Expand All @@ -15,7 +15,6 @@ spec:
kind: HelmRepository
name: bjw-s
namespace: flux-system
maxHistory: 2
install:
remediation:
retries: 3
Expand All @@ -35,27 +34,8 @@ spec:
values:
controllers:
main:
type: statefulset
annotations:
reloader.stakater.com/auto: "true"
statefulset:
volumeClaimTemplates:
- name: config
accessMode: ReadWriteOnce
size: 75Gi
storageClass: ceph-block
globalMounts:
- path: /config
pod:
enableServiceLinks: false
nodeSelector:
intel.feature.node.kubernetes.io/gpu: "true"
securityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
supplementalGroups: [44, 105, 10000]
containers:
main:
image:
Expand All @@ -82,18 +62,39 @@ spec:
readiness: *probes
startup:
enabled: false
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities: { drop: ["ALL"] }
resources:
requests:
limits: &resources
gpu.intel.com/i915: 1
memory: 16Gi
requests:
<<: *resources
cpu: 100m
memory: 1000Mi
limits:
gpu.intel.com/i915: 1
memory: 4000Mi
pod:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values: ["frigate"]
topologyKey: kubernetes.io/hostname
nodeSelector:
intel.feature.node.kubernetes.io/gpu: "true"
securityContext:
runAsUser: 568
runAsGroup: 568
runAsNonRoot: true
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
supplementalGroups: [44, 105, 10000]
service:
main:
type: LoadBalancer
LoadBalancerIP: "${SVC_JELLYFIN_ADDR}"
externalTrafficPolicy: Cluster
ports:
http:
Expand All @@ -118,14 +119,17 @@ spec:
- *host
secretName: "{{ .Release.Name }}-tls"
persistence:
config:
enabled: true
existingClaim: jellyfin
tmp:
type: emptyDir
transcode:
type: emptyDir
globalMounts:
- path: /transcode
media:
type: nfs
server: osiris.286k.co
path: /pluto/media
server: osiris.media.co
path: /pluto/Media
globalMounts:
- path: /media
readOnly: true

0 comments on commit c2ea806

Please sign in to comment.