first commit and switched to Terraform

This commit is contained in:
2025-04-07 16:43:44 +01:00
commit b1014c4fdf
3 changed files with 131 additions and 0 deletions
+62
View File
@@ -0,0 +1,62 @@
apiVersion: v1
kind: Namespace
metadata:
name: jellyfin
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: jellyfin
namespace: jellyfin
spec:
replicas: 0
selector:
matchLabels:
app: jellyfin
template:
metadata:
labels:
app: jellyfin
spec:
containers:
- image: jellyfin/jellyfin:latest
imagePullPolicy: IfNotPresent
env:
- name: JELLYFIN_PublishedServerUrl
value: "https://jellyfin.tryton.geeraert.eu"
name: jellyfin
ports:
- containerPort: 8096
name: jellyfin-port
volumeMounts:
- name: jellyfin-config
mountPath: /config
- name: jellyfin-cache
mountPath: /cache
- name: servarr-data
mountPath: /data
volumes:
- name: jellyfin-config
persistentVolumeClaim:
claimName: jellyfin-config
- name: jellyfin-cache
persistentVolumeClaim:
claimName: jellyfin-cache
- name: servarr-data
hostPath:
path: /data
---
apiVersion: v1
kind: Service
metadata:
name: jellyfin
namespace: jellyfin
spec:
ports:
- port: 8096
targetPort: jellyfin-port
protocol: TCP
selector:
app: jellyfin