whole bunch of fixes

This commit is contained in:
2023-12-10 16:17:14 +01:00
parent 7fc04f8d43
commit 45aa9c96dc
23 changed files with 204 additions and 71 deletions

View File

@@ -12,8 +12,8 @@ spec:
- name: jellyfin-websocket
kind: Rule
services:
- name: jellyfin
port: 8096
- name: jellyfin-web
port: 8080
tls:
certResolver: default-tls

View File

@@ -0,0 +1,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- pvc.yaml
- server.deployment.yaml
- server.service.yaml
- web.deployment.yaml
- web.service.yaml
- ingress.yaml
namespace: media

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: placeholder

View File

@@ -4,12 +4,9 @@ kind: PersistentVolume
metadata:
namespace: media
name: jellyfin-config-nfs
spec:
# storageClassName: slow
capacity:
storage: "1Gi"
# volumeMode: Filesystem
accessModes:
- ReadWriteOnce
nfs:
@@ -29,6 +26,7 @@ spec:
requests:
storage: "1Gi"
volumeName: jellyfin-config-nfs
---
apiVersion: v1
@@ -37,10 +35,8 @@ metadata:
namespace: media
name: jellyfin-data-nfs
spec:
# storageClassName: slow
capacity:
storage: "1Ti"
# volumeMode: Filesystem
accessModes:
- ReadWriteOnce
nfs:
@@ -53,7 +49,7 @@ metadata:
namespace: media
name: jellyfin-data-nfs
spec:
storageClassName: nfs-client
storageClassName: ""
accessModes:
- ReadWriteOnce
resources:

View File

@@ -0,0 +1,44 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: jellyfin-server
spec:
selector:
matchLabels:
app: jellyfin-server
template:
metadata:
labels:
app: jellyfin-server
spec:
containers:
- name: jellyfin-server
image: jellyfin/jellyfin:10.8.9
resources:
limits:
memory: "500Mi"
cpu: "2"
ports:
- containerPort: 8096
env:
- name: TZ
value: Europe/Berlin
volumeMounts:
- name: jellyfin-config
mountPath: /config
- name: jellyfin-data
mountPath: /media
livenessProbe:
httpGet:
path: /health
port: 8096
initialDelaySeconds: 100
periodSeconds: 15
volumes:
- name: jellyfin-config
persistentVolumeClaim:
claimName: jellyfin-config-nfs
- name: jellyfin-data
persistentVolumeClaim:
claimName: jellyfin-data-nfs

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: jellyfin-server
spec:
selector:
app: jellyfin-server
ports:
- protocol: TCP
port: 8096
targetPort: 8096

View File

@@ -0,0 +1,27 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: jellyfin-web
spec:
selector:
matchLabels:
app: jellyfin-web
template:
metadata:
labels:
app: jellyfin-web
spec:
containers:
- name: jellyfin-web
image: ghcr.io/jellyfin/jellyfin-vue
resources:
limits:
memory: "128Mi"
cpu: "30m"
ports:
- containerPort: 8080
env:
- name: TZ
value: Europe/Berlin
- name: DEFAULT_SERVERS
value: "jellyfin-server:8096"

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: jellyfin-web
spec:
selector:
app: jellyfin-web
ports:
- protocol: TCP
port: 8080
targetPort: 8080