diff --git a/mediaserver/base/mediaserver-radarr-deployment.yaml b/mediaserver/base/mediaserver-radarr-deployment.yaml new file mode 100644 index 0000000..c0c755a --- /dev/null +++ b/mediaserver/base/mediaserver-radarr-deployment.yaml @@ -0,0 +1,51 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: radarr + labels: + app: radarr +spec: + replicas: 1 + selector: + matchLabels: + app: radarr + template: + metadata: + labels: + app: radarr + annotations: + spec: + volumes: + - name: radarr-config + persistentVolumeClaim: + claimName: mediaserver-radarr-config-pvc + - name: plex-data + persistentVolumeClaim: + claimName: mediaserver-plex-data-pvc + - name: rdtclient-downloads + persistentVolumeClaim: + claimName: mediaserver-rdtclient-downloads-pvc + containers: + - name: radarr + image: ghcr.io/hotio/radarr:nightly@sha256:4ae34fcfa53ab10674ec31b69f7057f35e4b553338eb9bfcb7b5afb32b4edba0 + resources: + requests: + cpu: 1 + memory: 512Mi + ports: + - name: web + containerPort: 7878 + env: + - name: PUID + value: "1000" + - name: PGID + value: "1000" + - name: TZ + value: Europe/Amsterdam + volumeMounts: + - mountPath: /config + name: radarr-config + - mountPath: /downloads + name: rdtclient-downloads + - mountPath: /data + name: plex-data diff --git a/mediaserver/base/mediaserver-radarr-ingress.yaml b/mediaserver/base/mediaserver-radarr-ingress.yaml new file mode 100644 index 0000000..101cad2 --- /dev/null +++ b/mediaserver/base/mediaserver-radarr-ingress.yaml @@ -0,0 +1,12 @@ +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: mediaserver-radarr-ingressroute +spec: + routes: + - match: Host(`radarr.k8s.mziesel.nl`) + kind: Rule + services: + - name: mediaserver-radarr + port: web + tls: {} diff --git a/mediaserver/base/mediaserver-radarr-pvc.yaml b/mediaserver/base/mediaserver-radarr-pvc.yaml new file mode 100644 index 0000000..5bb18a4 --- /dev/null +++ b/mediaserver/base/mediaserver-radarr-pvc.yaml @@ -0,0 +1,11 @@ +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + name: mediaserver-radarr-config-pvc +spec: + storageClassName: nfs-client + accessModes: + - ReadWriteMany + resources: + requests: + storage: 2Gi diff --git a/mediaserver/base/mediaserver-radarr-svc.yaml b/mediaserver/base/mediaserver-radarr-svc.yaml new file mode 100644 index 0000000..d3c23a0 --- /dev/null +++ b/mediaserver/base/mediaserver-radarr-svc.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: mediaserver-radarr +spec: + ports: + - name: web + port: 80 + targetPort: web + selector: + app: radarr diff --git a/mediaserver/kustomization.yaml b/mediaserver/kustomization.yaml index 0724af0..a0413e0 100644 --- a/mediaserver/kustomization.yaml +++ b/mediaserver/kustomization.yaml @@ -17,3 +17,7 @@ resources: - ./base/mediaserver-rdtclient-ingress.yaml - ./base/mediaserver-rdtclient-pvc.yaml - ./base/mediaserver-rdtclient-svc.yaml +- ./base/mediaserver-radarr-deployment.yaml +- ./base/mediaserver-radarr-ingress.yaml +- ./base/mediaserver-radarr-pvc.yaml +- ./base/mediaserver-radarr-svc.yaml