Add prowlarr... dangit shrinking

Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
Martyn 2024-12-12 19:26:09 +00:00
parent 988745f3c5
commit 78e2e6f709
5 changed files with 135 additions and 0 deletions

View File

@ -0,0 +1,55 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: prowlarr
name: prowlarr
spec:
selector:
matchLabels:
app: prowlarr
strategy:
type: Recreate
template:
metadata:
labels:
app: prowlarr
spec:
containers:
- image: hotio/prowlarr:release-1.26.1.4844
imagePullPolicy: Always
name: prowlarr
ports:
- containerPort: 9696
name: http
protocol: TCP
resources:
requests:
cpu: 25m
memory: 628694953
volumeMounts:
- mountPath: /config
name: config
- mountPath: /data
name: data
- mountPath: /series
name: series
- mountPath: /combinedseries
name: combinedseries
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
terminationGracePeriodSeconds: 30
volumes:
- name: config
persistentVolumeClaim:
claimName: prowlarr-config-data
- name: series
persistentVolumeClaim:
claimName: smb-series
- name: combinedseries
persistentVolumeClaim:
claimName: smb-combinedseries
- name: data
persistentVolumeClaim:
claimName: smb-usenet

View File

@ -0,0 +1,35 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: smb-series
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: smb-series
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: smb-combinedseries
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: smb-combinedseries
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: smb-usenet
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: smb-usenet

View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
app.kubernetes.io/instance: prowlarr
name: prowlarr-config-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: longhorn-fast

View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
annotations:
external-dns.alpha.kubernetes.io/hostname: prowlarr.martyn.berlin
labels:
app: prowlarr
name: prowlarr
spec:
ports:
- targetPort: 9696
port: 80
selector:
app: prowlarr
type: LoadBalancer

View File

@ -0,0 +1,17 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: radarr
namespace: argocd
spec:
destination:
namespace: radarr
server: https://kubernetes.default.svc
project: apps
source:
path: apps-kustomized/radarr
repoURL: https://git.martyn.berlin/martyn/infra4talos
targetRevision: HEAD
syncPolicy:
automated:
selfHeal: true