This commit is contained in:
Philip Haupt
2025-05-26 23:52:04 +02:00
parent d7840211fc
commit b3030a7b0c
5 changed files with 191 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- main.yaml
- pv.yaml

111
prowlarr/main.yaml Normal file
View File

@@ -0,0 +1,111 @@
apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/instance: prowlarr
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: prowlarr
app.kubernetes.io/version: v0.3.0.1710
helm.sh/chart: prowlarr-4.5.2
name: prowlarr
spec:
ports:
- name: http
port: 9696
protocol: TCP
targetPort: http
selector:
app.kubernetes.io/instance: prowlarr
app.kubernetes.io/name: prowlarr
type: ClusterIP
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
app.kubernetes.io/instance: prowlarr
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: prowlarr
app.kubernetes.io/version: v0.3.0.1710
helm.sh/chart: prowlarr-4.5.2
name: prowlarr-config
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: openebs-3-replicas
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/instance: prowlarr
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: prowlarr
app.kubernetes.io/version: v0.3.0.1710
helm.sh/chart: prowlarr-4.5.2
name: prowlarr
spec:
replicas: 1
revisionHistoryLimit: 3
selector:
matchLabels:
app.kubernetes.io/instance: prowlarr
app.kubernetes.io/name: prowlarr
strategy:
type: Recreate
template:
metadata:
labels:
app.kubernetes.io/instance: prowlarr
app.kubernetes.io/name: prowlarr
spec:
automountServiceAccountToken: true
containers:
- env:
- name: PGID
value: "1000"
- name: PUID
value: "1000"
- name: TZ
value: CET
image: lscr.io/linuxserver/prowlarr:1.36.3
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
initialDelaySeconds: 0
periodSeconds: 10
tcpSocket:
port: 9696
timeoutSeconds: 1
name: prowlarr
ports:
- containerPort: 9696
name: http
protocol: TCP
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 0
periodSeconds: 10
tcpSocket:
port: 9696
timeoutSeconds: 1
startupProbe:
failureThreshold: 30
initialDelaySeconds: 0
periodSeconds: 5
tcpSocket:
port: 9696
timeoutSeconds: 1
volumeMounts:
- mountPath: /config
name: config
dnsPolicy: ClusterFirst
enableServiceLinks: true
serviceAccountName: default
volumes:
- name: config
persistentVolumeClaim:
claimName: prowlarr-config

17
prowlarr/pv.yaml Normal file
View File

@@ -0,0 +1,17 @@
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: nfs-media-prowlarr
spec:
storageClassName: nfs-storage
capacity:
storage: 1Gi # Beachte: NFS ist dynamisch, die Größe ist nur ein Label
accessModes:
- ReadWriteMany # Mehrere Pods können es gleichzeitig nutzen
persistentVolumeReclaimPolicy: Retain
nfs:
path: /mnt/volume1/media # Der Pfad der NFS-Freigabe auf der NAS
server: 192.168.10.1 # Die IP-Adresse deiner NAS
mountOptions:
- nfsvers=4 # Passe ggf. an (nfsvers=3 falls nötig)

View File

@@ -0,0 +1,12 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
- name: prowlarr
repo: https://k8s-at-home.com/charts/
version: 4.5.2
releaseName: prowlarr
includeCRDs: true
namespace: prowlarr
valuesFile: values.yaml

44
prowlarr/src/values.yaml Normal file
View File

@@ -0,0 +1,44 @@
#
# IMPORTANT NOTE
#
# This chart inherits from our common library chart. You can check the default values/options here:
# https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml
#
image:
# -- image repository
repository: lscr.io/linuxserver/prowlarr
# @default -- chart.appVersion
tag: 1.36.3
# -- image pull policy
pullPolicy: IfNotPresent
# -- environment variables.
# @default -- See below
env:
# -- Set the container timezone
TZ: CET
PUID: 1000
PGID: 1000
# -- Configures service settings for the chart.
# @default -- See values.yaml
service:
main:
ports:
http:
port: 9696
ingress:
# -- Enable and configure ingress settings for the chart under this key.
# @default -- See values.yaml
main:
enabled: false
# -- Configure persistence settings for the chart under this key.
# @default -- See values.yaml
persistence:
config:
enabled: true
storageClass: openebs-3-replicas
accessMode: ReadWriteOnce