first commit and switched to Terraform
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
# migrated to terraform deploy
|
||||
|
||||
```
|
||||
jellyfin = {
|
||||
enabled = false
|
||||
image = "jellyfin/jellyfin:latest"
|
||||
service_port = 8096
|
||||
|
||||
environment = {
|
||||
|
||||
JELLYFIN_PublishedServerUrl = {
|
||||
value = "https://jellyfin.tryton.geeraert.eu"
|
||||
}
|
||||
}
|
||||
pvc = {
|
||||
jellyfin-config = {
|
||||
pvc = true
|
||||
name = "jellyfin-config"
|
||||
pvc_size = "2Mi"
|
||||
mount_path = "/config"
|
||||
}
|
||||
jellyfin-cache = {
|
||||
pvc = true
|
||||
name = "jellyfin-cache"
|
||||
pvc_size = "2Mi"
|
||||
mount_path = "/cache"
|
||||
}
|
||||
jellyfin-date = {
|
||||
host_path = "/data"
|
||||
name = "export"
|
||||
pvc_size = "2Mi"
|
||||
mount_path = "/data"
|
||||
}
|
||||
}
|
||||
requirements = {
|
||||
limits-cpu = "900m"
|
||||
limits-memory = "600Mi"
|
||||
requests-cpu = "300m"
|
||||
requests-memory = "400Mi"
|
||||
}
|
||||
|
||||
}
|
||||
```
|
||||
@@ -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
|
||||
@@ -0,0 +1,26 @@
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: jellyfin-config
|
||||
namespace: jellyfin
|
||||
spec:
|
||||
storageClassName: nfs-storage-intelligent
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Mi
|
||||
---
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: jellyfin-cache
|
||||
namespace: jellyfin
|
||||
spec:
|
||||
storageClassName: nfs-storage-intelligent
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Mi
|
||||
|
||||
Reference in New Issue
Block a user