feat: Add Prowlarr
This commit is contained in:
parent
9718e6c85b
commit
6a909396a5
8 changed files with 114 additions and 0 deletions
9
k8s-wheatley/prowlarr/database.yaml
Normal file
9
k8s-wheatley/prowlarr/database.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
|
kind: Cluster
|
||||||
|
metadata:
|
||||||
|
name: prowlarr-db
|
||||||
|
spec:
|
||||||
|
instances: 1
|
||||||
|
storage:
|
||||||
|
size: 1Gi
|
||||||
48
k8s-wheatley/prowlarr/deployments.yaml
Normal file
48
k8s-wheatley/prowlarr/deployments.yaml
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: prowlarr
|
||||||
|
labels:
|
||||||
|
app: prowlarr
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: prowlarr
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: prowlarr
|
||||||
|
spec:
|
||||||
|
volumes:
|
||||||
|
- name: prowlarr-config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: prowlarr-storage
|
||||||
|
containers:
|
||||||
|
- name: prowlarr
|
||||||
|
image: linuxserver/prowlarr:2.3.0
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
ports:
|
||||||
|
- containerPort: 9696
|
||||||
|
env:
|
||||||
|
- name: PUID
|
||||||
|
value: "1000"
|
||||||
|
- name: PGID
|
||||||
|
value: "1000"
|
||||||
|
- name: TZ
|
||||||
|
value: Europe/Amsterdam
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /config
|
||||||
|
name: prowlarr-config
|
||||||
|
securityContext:
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
drop:
|
||||||
|
- "ALL"
|
||||||
|
add:
|
||||||
|
- "CHOWN"
|
||||||
|
- "SETUID"
|
||||||
|
- "SETGID"
|
||||||
15
k8s-wheatley/prowlarr/ingress.yaml
Normal file
15
k8s-wheatley/prowlarr/ingress.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
name: prowlarr-route
|
||||||
|
spec:
|
||||||
|
parentRefs:
|
||||||
|
- name: internal
|
||||||
|
namespace: kube-system
|
||||||
|
hostnames:
|
||||||
|
- "prowlarr.k8s.wheatley.in"
|
||||||
|
rules:
|
||||||
|
- backendRefs:
|
||||||
|
- name: prowlarr
|
||||||
|
port: 80
|
||||||
13
k8s-wheatley/prowlarr/kustomization.yaml
Normal file
13
k8s-wheatley/prowlarr/kustomization.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: prowlarr
|
||||||
|
|
||||||
|
resources:
|
||||||
|
# - database.yaml
|
||||||
|
- deployments.yaml
|
||||||
|
- ingress.yaml
|
||||||
|
- pvc.yaml
|
||||||
|
- secrets.yaml
|
||||||
|
- services.yaml
|
||||||
|
- namespace.yaml
|
||||||
5
k8s-wheatley/prowlarr/namespace.yaml
Normal file
5
k8s-wheatley/prowlarr/namespace.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: prowlarr
|
||||||
12
k8s-wheatley/prowlarr/pvc.yaml
Normal file
12
k8s-wheatley/prowlarr/pvc.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: prowlarr-storage
|
||||||
|
spec:
|
||||||
|
storageClassName: piraeus-lvmthin
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 5Gi
|
||||||
0
k8s-wheatley/prowlarr/secrets.yaml
Normal file
0
k8s-wheatley/prowlarr/secrets.yaml
Normal file
12
k8s-wheatley/prowlarr/services.yaml
Normal file
12
k8s-wheatley/prowlarr/services.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: prowlarr
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: prowlarr
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 9696
|
||||||
Loading…
Add table
Add a link
Reference in a new issue