working on kube
This commit is contained in:
55
kubernetes/jellyfin/deployment.yml
Normal file
55
kubernetes/jellyfin/deployment.yml
Normal 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
|
||||
14
kubernetes/jellyfin/ingress.yml
Normal file
14
kubernetes/jellyfin/ingress.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: jellyfin-ingress
|
||||
namespace: projects
|
||||
spec:
|
||||
rules:
|
||||
- host: jellyfin.alexmickelson.guru
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
backend:
|
||||
service: jellyfin
|
||||
port: 8096
|
||||
13
kubernetes/jellyfin/service.yml
Normal file
13
kubernetes/jellyfin/service.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: jellyfin
|
||||
namespace: projects
|
||||
spec:
|
||||
selector:
|
||||
app: jellyfin
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8096
|
||||
targetPort: 8096
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user