diff --git a/apps/media/kustomization.yaml b/apps/media/kustomization.yaml index b71b2ff..4e5c341 100644 --- a/apps/media/kustomization.yaml +++ b/apps/media/kustomization.yaml @@ -8,3 +8,4 @@ resources: - sonarr - radarr - bazarr + - readarr diff --git a/apps/media/readarr/deployment.yaml b/apps/media/readarr/deployment.yaml new file mode 100644 index 0000000..74275f6 --- /dev/null +++ b/apps/media/readarr/deployment.yaml @@ -0,0 +1,40 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: readarr + namespace: media +spec: + selector: + matchLabels: + app: readarr + replicas: 1 + template: + metadata: + labels: + app: readarr + spec: + containers: + - name: readarr + image: lscr.io/linuxserver/readarr:latest + ports: + - containerPort: 8787 + name: readarr + volumeMounts: + - name: books + mountPath: /books + - name: downloads + mountPath: /downloads + - name: config + mountPath: /config + volumes: + - name: books + hostPath: + path: /home/padawan/homelab/media-server/media/books + type: Directory + - name: downloads + hostPath: + path: /home/padawan/homelab/media-server/media/downloads + type: Directory + - name: config + persistentVolumeClaim: + claimName: readarr-config diff --git a/apps/media/readarr/ingress.yaml b/apps/media/readarr/ingress.yaml new file mode 100644 index 0000000..35ab865 --- /dev/null +++ b/apps/media/readarr/ingress.yaml @@ -0,0 +1,21 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: readarr + namespace: media +spec: + tls: + - hosts: + - readarr.totorinho.duckdns.org + secretName: duckdns-wildcard-cert-totorinho.duckdns.org + rules: + - host: readarr.totorinho.duckdns.org + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: readarr + port: + number: 8787 diff --git a/apps/media/readarr/kustomization.yaml b/apps/media/readarr/kustomization.yaml new file mode 100644 index 0000000..50e883c --- /dev/null +++ b/apps/media/readarr/kustomization.yaml @@ -0,0 +1,7 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - pvc.yaml + - deployment.yaml + - service.yaml + - ingress.yaml diff --git a/apps/media/readarr/pvc.yaml b/apps/media/readarr/pvc.yaml new file mode 100644 index 0000000..53cf72a --- /dev/null +++ b/apps/media/readarr/pvc.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: readarr-config + namespace: media + labels: + app: readarr +spec: + storageClassName: local-path + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 500Mi + diff --git a/apps/media/readarr/service.yaml b/apps/media/readarr/service.yaml new file mode 100644 index 0000000..0742102 --- /dev/null +++ b/apps/media/readarr/service.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: readarr + namespace: media +spec: + selector: + app: readarr + ports: + - port: 8787 + targetPort: 8787