emby added

This commit is contained in:
Steffen Illium 2024-05-02 20:08:21 +02:00
parent 5265fed2ce
commit eb6c03f2d6
5 changed files with 113 additions and 0 deletions

View File

@ -0,0 +1,62 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: emby
labels:
app: emby
namespace: emby
spec:
replicas: 1
selector:
matchLabels:
app: emby
template:
metadata:
labels:
app: emby
spec:
containers:
- name: emby
image: emby/embyserver:latest
ports:
- name: http
containerPort: 8096
- name: https
containerPort: 8920
- name: http-front
containerPort: 8080
volumeMounts:
- mountPath: /config
name: config
- mountPath: /mnt/share_movie
name: media
subPath: movie
- mountPath: /mnt/share_tvshow
name: media
subPath: tvshow
- mountPath: /mnt/share_anime
name: media
subPath: anime
- mountPath: /mnt/share_music
name: media
subPath: music
resources: {}
livenessProbe:
httpGet:
path: /web/index.html
port: 8096
timeoutSeconds: 30
readinessProbe:
httpGet:
path: /web/index.html
port: 8096
timeoutSeconds: 30
volumes:
- name: config
persistentVolumeClaim:
claimName: config
readOnly: false
- name: media
nfs:
server: 192.168.178.4
path: /mnt/media

View File

@ -0,0 +1,15 @@
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: emby
namespace: emby
labels:
app: emby
rules:
- host: emby.steffenillium.de
http:
paths:
- path: /
backend:
serviceName: emby
servicePort: http

12
apps/emby/base/pvc.yaml Normal file
View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: emby
spec:
storageClassName: "rook-cephfs"
volumeMode: Filesystem
accessModes:
- ReadWriteMany
resources:
requests:
storage: 30Gi

View File

@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: emby
namespace: default
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: http
selector:
app: emby
sessionAffinity: None

View File

@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: emby
resources:
- base/deployment.yaml
- base/ingress.yaml
- base/pvc.yaml
- base/service.yaml