Installed Readarr and Kavita

This commit is contained in:
hamilcarBarca17
2022-10-06 11:02:15 -06:00
parent 02df0ae4ec
commit 12bb040e3d
8 changed files with 208 additions and 2 deletions
+14
View File
@@ -54,6 +54,20 @@ spec:
name: prowlarr name: prowlarr
port: port:
name: webui name: webui
- path: /readarr
pathType: Prefix
backend:
service:
name: readarr
port:
name: webui
- path: /kavita
pathType: Prefix
backend:
service:
name: kavita
port:
name: webui
--- ---
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: IngressClass kind: IngressClass
+65
View File
@@ -0,0 +1,65 @@
apiVersion: v1
kind: Service
metadata:
name: kavita
spec:
ports:
- port: 5000
protocol: TCP
targetPort: 5000
name: webui
selector:
run: kavita
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: kavita
name: kavita
spec:
replicas: 1
selector:
matchLabels:
run: kavita
template:
metadata:
labels:
run: kavita
spec:
securityContext:
fsGroup: 1000
initContainers:
- name: chown
image: busybox
command: ["sh", "-c", "chown -R 1000:1000 /config && chown -R 1000:1000 /books"]
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: kavita
- mountPath: /books
name: htpc-home
subPath: media/books
containers:
- env:
- name: TZ
value: America/Denver
- name: PUID
value: "1000"
- name: PGID
value: "1000"
image: kizaing/kavita
name: kavita
ports:
- containerPort: 5000
name: webui
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: kavita
- mountPath: /books
name: htpc-home
subPath: media/books
- mountPath: /downloads
name: htpc-home
subPath: downloads
+2
View File
@@ -14,6 +14,8 @@ resources:
- transmission.yaml - transmission.yaml
- plex.yaml - plex.yaml
- prowlarr.yml - prowlarr.yml
- readarr.yaml
- kavita.yaml
- ingress.yaml - ingress.yaml
patchesStrategicMerge: patchesStrategicMerge:
+1 -1
View File
@@ -58,7 +58,7 @@ spec:
containers: containers:
- env: - env:
- name: TZ - name: TZ
value: Pacific/Auckland value: America/Denver
- name: PUID - name: PUID
value: "1000" value: "1000"
- name: PGID - name: PGID
+96
View File
@@ -0,0 +1,96 @@
apiVersion: v1
kind: Service
metadata:
name: readarr
spec:
ports:
- port: 8787
protocol: TCP
targetPort: 8787
name: webui
selector:
run: readarr
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: readarr
name: readarr
spec:
replicas: 1
selector:
matchLabels:
run: readarr
template:
metadata:
labels:
run: readarr
spec:
securityContext:
fsGroup: 1000
initContainers:
- name: chown
image: busybox
command: ["sh", "-c", "chown -R 1000:1000 /config && chown -R 1000:1000 /books && chown -R 1000:1000 /downloads"]
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: readarr
- mountPath: /books
name: htpc-home
subPath: media/books
- mountPath: /downloads
name: htpc-home
subPath: downloads
- name: config
image: busybox
command: ["sh", "-c"]
securityContext:
runAsUser: 1000
runAsGroup: 1000
args:
- "echo start;[[ ! -f /config/config.xml ]] && echo '<Config><UrlBase>/$(READARR)</UrlBase></Config>'> /config/config.xml;echo end;"
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: readarr
containers:
- env:
- name: TZ
value: America/Denver
- name: PUID
value: "1000"
- name: PGID
value: "1000"
image: linuxserver/readarr
name: readarr
ports:
- containerPort: 8787
name: webui
livenessProbe:
exec:
command:
- /bin/sh
- -c
- curl "http://localhost:8787/readarr/api/health?ApiKey=$(sed -ne '/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}' </config/config.xml)"
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
exec:
command:
- /bin/sh
- -c
- curl "http://localhost:8787/readarr/api/system/status?ApiKey=$(sed -ne '/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}' </config/config.xml)"
initialDelaySeconds: 30
periodSeconds: 10
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: readarr
- mountPath: /books
name: htpc-home
subPath: media/books
- mountPath: /downloads
name: htpc-home
subPath: downloads
+1 -1
View File
@@ -64,7 +64,7 @@ spec:
image: linuxserver/transmission image: linuxserver/transmission
env: env:
- name: TZ - name: TZ
value: Pacific/Auckland value: America/Denver
- name: PUID - name: PUID
value: "1000" value: "1000"
- name: PGID - name: PGID
+26
View File
@@ -76,3 +76,29 @@ spec:
type: DirectoryOrCreate type: DirectoryOrCreate
name: htpc-home name: htpc-home
--- ---
apiVersion: apps/v1
kind: Deployment
metadata:
name: readarr
spec:
template:
spec:
volumes:
- hostPath:
path: /nfs/htpc
type: DirectoryOrCreate
name: htpc-home
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kavita
spec:
template:
spec:
volumes:
- hostPath:
path: /nfs/htpc
type: DirectoryOrCreate
name: htpc-home
---
+3
View File
@@ -18,5 +18,8 @@ images:
- name: linuxserver/plex - name: linuxserver/plex
newTag: arm32v7-latest newTag: arm32v7-latest
newTag: latest newTag: latest
- name: linuxserver/readarr
newTag: arm32v7-nightly
newTag: latest
- name: linuxserver/prowlarr - name: linuxserver/prowlarr
newTag: arm32v7-nightly newTag: arm32v7-nightly