working on kube

This commit is contained in:
2025-03-04 08:41:02 -07:00
parent 67fe95fdc1
commit 9392211604
7 changed files with 228 additions and 1 deletions

View File

@@ -0,0 +1,55 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: jellyfin
namespace: projects
spec:
replicas: 1
selector:
matchLabels:
app: jellyfin
template:
metadata:
labels:
app: jellyfin
spec:
containers:
- name: jellyfin
image: jellyfin/jellyfin
securityContext:
runAsUser: 1000
runAsGroup: 1000
volumeMounts:
- name: config-volume
mountPath: /config
- name: cache-volume
mountPath: /cache
- name: music-volume
mountPath: /music
- name: movies-volume
mountPath: /movies
- name: tvshows-volume
mountPath: /tvshows
ports:
- containerPort: 8096
name: jellyfin
env:
- name: JELLYFIN_PublishedServerUrl
value: "https://jellyfin.alexmickelson.guru"
volumes:
- name: config-volume
hostPath:
path: /data/jellyfin/config
- name: cache-volume
hostPath:
path: /data/jellyfin/cache
- name: music-volume
hostPath:
path: /data/jellyfin/music
- name: movies-volume
hostPath:
path: /data/jellyfin/movies
- name: tvshows-volume
hostPath:
path: /data/jellyfin/tvshows
restartPolicy: Always