diff --git a/media/prowlarr/deployment.yaml b/media/prowlarr/deployment.yaml new file mode 100644 index 0000000..a9eb265 --- /dev/null +++ b/media/prowlarr/deployment.yaml @@ -0,0 +1,30 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: prowlarr + namespace: media +spec: + selector: + matchLabels: + app: prowlarr + template: + metadata: + labels: + app: prowlarr + spec: + containers: + - name: prowlarr + image: lscr.io/linuxserver/prowlarr:latest + ports: + - containerPort: 9696 + name: http + protocol: TCP + volumeMounts: + - name: config + mountPath: /config + volumes: + - name: config + persistentVolumeClaim: + claimName: prowlarr-config + + diff --git a/media/prowlarr/dns-endpoint.yaml b/media/prowlarr/dns-endpoint.yaml new file mode 100644 index 0000000..87958f8 --- /dev/null +++ b/media/prowlarr/dns-endpoint.yaml @@ -0,0 +1,12 @@ +apiVersion: externaldns.k8s.io/v1alpha1 +kind: DNSEndpoint +metadata: + name: prowlarr.michaelthomson.dev + namespace: media +spec: + endpoints: + - dnsName: prowlarr.michaelthomson.dev + recordTTL: 180 + recordType: CNAME + targets: + - server.michaelthomson.dev diff --git a/media/prowlarr/ingress.yaml b/media/prowlarr/ingress.yaml new file mode 100644 index 0000000..6f7e6d2 --- /dev/null +++ b/media/prowlarr/ingress.yaml @@ -0,0 +1,25 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: prowlarr + namespace: media + annotations: + traefik.ingress.kubernetes.io/router.entrypoints: websecure + traefik.ingress.kubernetes.io/router.middlewares: traefik-authentik@kubernetescrd + traefik.ingress.kubernetes.io/router.tls: "true" +spec: + rules: + - host: prowlarr.michaelthomson.dev + http: + paths: + - pathType: ImplementationSpecific + path: / + backend: + service: + name: prowlarr + port: + name: http + tls: + - hosts: + - prowlarr.michaelthomson.dev + secretName: letsencrypt-wildcard-cert-michaelthomson.dev diff --git a/media/prowlarr/pvc-config.yaml b/media/prowlarr/pvc-config.yaml new file mode 100644 index 0000000..827d911 --- /dev/null +++ b/media/prowlarr/pvc-config.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: prowlarr-config + namespace: media +spec: + resources: + requests: + storage: 1Gi + storageClassName: longhorn + accessModes: + - ReadWriteOnce diff --git a/media/prowlarr/service.yaml b/media/prowlarr/service.yaml new file mode 100644 index 0000000..a29cfbd --- /dev/null +++ b/media/prowlarr/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: prowlarr + namespace: media +spec: + selector: + app: prowlarr + ports: + - port: 80 + targetPort: http + name: http