diff --git a/mediaserver/base/mediaserver-jellyseerr-deployment.yaml b/mediaserver/base/mediaserver-jellyseerr-deployment.yaml new file mode 100644 index 0000000..3bfd936 --- /dev/null +++ b/mediaserver/base/mediaserver-jellyseerr-deployment.yaml @@ -0,0 +1,43 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: jellyseerr + labels: + app: jellyseerr +spec: + replicas: 1 + selector: + matchLabels: + app: jellyseerr + template: + metadata: + labels: + app: jellyseerr + annotations: + spec: + volumes: + - name: jellyseerr-config + persistentVolumeClaim: + claimName: mediaserver-jellyseerr-config-pvc + containers: + - name: jellyseerr + image: ghcr.io/hotio/jellyseerr:latest@sha256:312cd9dbe644a6aaac7d14aec1743c850d612c117815d27306f700090bff53c0 + resources: + requests: + cpu: 1 + memory: 512Mi + ports: + - name: web + containerPort: 5055 + env: + - name: PUID + value: "1000" + - name: PGID + value: "1000" + - name: UMASK + value: "002" + - name: TZ + value: Europe/Amsterdam + volumeMounts: + - mountPath: /config + name: jellyseerr-config diff --git a/mediaserver/base/mediaserver-jellyseerr-ingress.yaml b/mediaserver/base/mediaserver-jellyseerr-ingress.yaml new file mode 100644 index 0000000..6c6962b --- /dev/null +++ b/mediaserver/base/mediaserver-jellyseerr-ingress.yaml @@ -0,0 +1,12 @@ +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: mediaserver-jellyseerr-ingressroute +spec: + routes: + - match: Host(`jellyseerr.k8s.mziesel.nl`) || Host(`jellyseerr.mziesel.nl`) + kind: Rule + services: + - name: mediaserver-jellyseerr + port: web + tls: {} diff --git a/mediaserver/base/mediaserver-jellyseerr-pvc.yaml b/mediaserver/base/mediaserver-jellyseerr-pvc.yaml new file mode 100644 index 0000000..f3f4591 --- /dev/null +++ b/mediaserver/base/mediaserver-jellyseerr-pvc.yaml @@ -0,0 +1,11 @@ +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + name: mediaserver-jellyseerr-config-pvc +spec: + storageClassName: nfs-client + accessModes: + - ReadWriteMany + resources: + requests: + storage: 2Gi diff --git a/mediaserver/base/mediaserver-jellyseerr-svc.yaml b/mediaserver/base/mediaserver-jellyseerr-svc.yaml new file mode 100644 index 0000000..7e49689 --- /dev/null +++ b/mediaserver/base/mediaserver-jellyseerr-svc.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: mediaserver-jellyseerr +spec: + ports: + - name: web + port: 80 + targetPort: web + selector: + app: jellyseerr diff --git a/mediaserver/kustomization.yaml b/mediaserver/kustomization.yaml index 14cbb9d..c325380 100644 --- a/mediaserver/kustomization.yaml +++ b/mediaserver/kustomization.yaml @@ -35,3 +35,7 @@ resources: - ./base/mediaserver-jellyfin-ingress.yaml - ./base/mediaserver-jellyfin-pvc.yaml - ./base/mediaserver-jellyfin-svc.yaml +- ./base/mediaserver-jellyseerr-deployment.yaml +- ./base/mediaserver-jellyseerr-ingress.yaml +- ./base/mediaserver-jellyseerr-pvc.yaml +- ./base/mediaserver-jellyseerr-svc.yaml