Installed Readarr and Kavita
This commit is contained in:
@@ -54,6 +54,20 @@ spec:
|
||||
name: prowlarr
|
||||
port:
|
||||
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
|
||||
kind: IngressClass
|
||||
|
||||
@@ -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
|
||||
@@ -14,6 +14,8 @@ resources:
|
||||
- transmission.yaml
|
||||
- plex.yaml
|
||||
- prowlarr.yml
|
||||
- readarr.yaml
|
||||
- kavita.yaml
|
||||
- ingress.yaml
|
||||
|
||||
patchesStrategicMerge:
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ spec:
|
||||
containers:
|
||||
- env:
|
||||
- name: TZ
|
||||
value: Pacific/Auckland
|
||||
value: America/Denver
|
||||
- name: PUID
|
||||
value: "1000"
|
||||
- name: PGID
|
||||
|
||||
@@ -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
|
||||
@@ -64,7 +64,7 @@ spec:
|
||||
image: linuxserver/transmission
|
||||
env:
|
||||
- name: TZ
|
||||
value: Pacific/Auckland
|
||||
value: America/Denver
|
||||
- name: PUID
|
||||
value: "1000"
|
||||
- name: PGID
|
||||
|
||||
@@ -76,3 +76,29 @@ spec:
|
||||
type: DirectoryOrCreate
|
||||
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
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user