From 0f218ff92cf162bd481f1e8a5725eca7d4b6c937 Mon Sep 17 00:00:00 2001 From: Michael Thomson Date: Mon, 18 Dec 2023 14:49:39 -0500 Subject: [PATCH] ugh --- media/prowlarr/deployment.yaml | 30 ++++++++++++++++++++++++++++++ media/prowlarr/dns-endpoint.yaml | 12 ++++++++++++ media/prowlarr/ingress.yaml | 25 +++++++++++++++++++++++++ media/prowlarr/pvc-config.yaml | 12 ++++++++++++ media/prowlarr/service.yaml | 12 ++++++++++++ 5 files changed, 91 insertions(+) create mode 100644 media/prowlarr/deployment.yaml create mode 100644 media/prowlarr/dns-endpoint.yaml create mode 100644 media/prowlarr/ingress.yaml create mode 100644 media/prowlarr/pvc-config.yaml create mode 100644 media/prowlarr/service.yaml 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