diff --git a/mediaserver/base/mediaserver-overserr-deployment.yaml b/mediaserver/base/mediaserver-overserr-deployment.yaml new file mode 100644 index 0000000..10f0fd3 --- /dev/null +++ b/mediaserver/base/mediaserver-overserr-deployment.yaml @@ -0,0 +1,41 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: overseerr + labels: + app: overseerr +spec: + replicas: 1 + selector: + matchLabels: + app: overseerr + template: + metadata: + labels: + app: overseerr + annotations: + spec: + volumes: + - name: overseerr-config + persistentVolumeClaim: + claimName: mediaserver-overseerr-config-pvc + containers: + - name: overseerr + image: sctx/overseerr:latest@sha256:714ea6db2bc007a2262d112bef7eec74972eb33d9c72bddb9cbd98b8742de950 + resources: + requests: + cpu: 1 + memory: 512Mi + ports: + - name: web + containerPort: 5055 + env: + - name: PUID + value: "1000" + - name: PGID + value: "1000" + - name: TZ + value: Europe/Amsterdam + volumeMounts: + - mountPath: /app/config + name: overseerr-config diff --git a/mediaserver/base/mediaserver-overserr-ingress.yaml b/mediaserver/base/mediaserver-overserr-ingress.yaml new file mode 100644 index 0000000..b55d77b --- /dev/null +++ b/mediaserver/base/mediaserver-overserr-ingress.yaml @@ -0,0 +1,12 @@ +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: mediaserver-overseerr-ingressroute +spec: + routes: + - match: Host(`overseerr.k8s.mziesel.nl`) + kind: Rule + services: + - name: mediaserver-overseerr + port: web + tls: {} diff --git a/mediaserver/base/mediaserver-overserr-pvc.yaml b/mediaserver/base/mediaserver-overserr-pvc.yaml new file mode 100644 index 0000000..b454a48 --- /dev/null +++ b/mediaserver/base/mediaserver-overserr-pvc.yaml @@ -0,0 +1,11 @@ +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + name: mediaserver-overseerr-config-pvc +spec: + storageClassName: nfs-client + accessModes: + - ReadWriteMany + resources: + requests: + storage: 2Gi diff --git a/mediaserver/base/mediaserver-overserr-svc.yaml b/mediaserver/base/mediaserver-overserr-svc.yaml new file mode 100644 index 0000000..99ce97a --- /dev/null +++ b/mediaserver/base/mediaserver-overserr-svc.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: mediaserver-overseerr +spec: + ports: + - name: web + port: 80 + targetPort: web + selector: + app: overseerr diff --git a/mediaserver/kustomization.yaml b/mediaserver/kustomization.yaml index a71cc87..9c49574 100644 --- a/mediaserver/kustomization.yaml +++ b/mediaserver/kustomization.yaml @@ -27,3 +27,7 @@ resources: - ./base/mediaserver-sonarr-svc.yaml - ./base/mediaserver-flaresolverr-deployment.yaml - ./base/mediaserver-flaresolverr-svc.yaml +- ./base/mediaserver-overseerr-deployment.yaml +- ./base/mediaserver-overseerr-ingress.yaml +- ./base/mediaserver-overseerr-pvc.yaml +- ./base/mediaserver-overseerr-svc.yaml