init
This commit is contained in:
42
k8s/deploy.yaml
Normal file
42
k8s/deploy.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: jf
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: jf
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: jf
|
||||
spec:
|
||||
containers:
|
||||
- name: jf
|
||||
image: jellyfin/jellyfin:latest
|
||||
volumeMounts:
|
||||
- mountPath: /media
|
||||
name: jf-media
|
||||
- mountPath: /config
|
||||
name: jf-config
|
||||
- mountPath: /cache
|
||||
name: jf-cache
|
||||
resources:
|
||||
limits:
|
||||
memory: "2Gi"
|
||||
cpu: "2"
|
||||
requests:
|
||||
memory: "500Mi"
|
||||
cpu: "1m"
|
||||
ports:
|
||||
- containerPort: 8096
|
||||
volumes:
|
||||
- name: jf-media
|
||||
persistentVolumeClaim:
|
||||
claimName: jellyfin-media
|
||||
- name: jf-config
|
||||
persistentVolumeClaim:
|
||||
claimName: jellyfin-config
|
||||
- name: jf-cache
|
||||
persistentVolumeClaim:
|
||||
claimName: jellyfin-cache
|
||||
18
k8s/ingress.yaml
Normal file
18
k8s/ingress.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
ingress.kubernetes.io/ssl-redirect: "true"
|
||||
name: jf
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- jf.ducoterra.net
|
||||
secretName: letsencrypt
|
||||
rules:
|
||||
- host: jf.ducoterra.net
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: jf-web
|
||||
servicePort: 8096
|
||||
35
k8s/pvc/pvc.yaml
Normal file
35
k8s/pvc/pvc.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: jellyfin-media
|
||||
spec:
|
||||
storageClassName: nfs-encrypted
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 512Gi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: jellyfin-cache
|
||||
spec:
|
||||
storageClassName: nfs-encrypted
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 32Gi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: jellyfin-config
|
||||
spec:
|
||||
storageClassName: nfs-encrypted
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 32Gi
|
||||
10
k8s/service.yaml
Normal file
10
k8s/service.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: jf-web
|
||||
spec:
|
||||
selector:
|
||||
app: jf
|
||||
ports:
|
||||
- port: 8096
|
||||
targetPort: 8096
|
||||
Reference in New Issue
Block a user