Cleaned repo a bit.

This commit is contained in:
hamilcarBarca17
2022-10-04 10:22:48 -06:00
parent 5b9ba965f9
commit 02df0ae4ec
18 changed files with 115 additions and 1603 deletions
+12 -16
View File
@@ -3,13 +3,11 @@ kind: Service
metadata:
name: bazarr
spec:
type: NodePort
ports:
- port: 6767
protocol: TCP
targetPort: 6767
name: webui
nodePort: 30003
selector:
run: bazarr
---
@@ -30,8 +28,6 @@ spec:
run: bazarr
spec:
securityContext:
# runAsUser: 1000
# runAsGroup: 1000
fsGroup: 1000
initContainers:
- name: wait-for-sonarr-and-radarr
@@ -106,18 +102,18 @@ spec:
value: "1000"
image: linuxserver/bazarr
name: bazarr
# livenessProbe:
# httpGet:
# path: /bazarr
# port: webui
# initialDelaySeconds: 200
# periodSeconds: 15
# readinessProbe:
# httpGet:
# path: /bazarr
# port: webui
# initialDelaySeconds: 200
# periodSeconds: 15
livenessProbe:
httpGet:
path: /bazarr
port: webui
initialDelaySeconds: 200
periodSeconds: 15
readinessProbe:
httpGet:
path: /bazarr
port: webui
initialDelaySeconds: 200
periodSeconds: 15
ports:
- containerPort: 6767
name: webui
+1 -8
View File
@@ -16,14 +16,7 @@ spec:
pathType: Prefix
backend:
service:
name: emby
port:
name: webui
- path: /jackett
pathType: Prefix
backend:
service:
name: jackett
name: plex
port:
name: webui
- path: /sonarr
-68
View File
@@ -1,68 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: jackett
spec:
type: NodePort
ports:
- port: 9117
protocol: TCP
targetPort: 9117
name: webui
nodePort: 30004
selector:
run: jackett
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: jackett
name: jackett
spec:
replicas: 1
selector:
matchLabels:
run: jackett
template:
metadata:
labels:
run: jackett
spec:
securityContext:
# runAsUser: 1000
# runAsGroup: 1000
fsGroup: 1000
initContainers:
- name: config
image: busybox
command: ["sh", "-c"]
args:
- "echo start;
[[ ! -f /config/Jackett/ServerConfig.json ]] && mkdir -p /config/Jackett/ && echo '{ \"BasePathOverride\": \"/jackett\"}' > /config/Jackett/ServerConfig.json;
echo end;"
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: jackett
containers:
- env:
- name: TZ
value: America/Denver
- name: PUID
value: "1000"
- name: PGID
value: "1000"
image: linuxserver/jackett
name: jackett
ports:
- containerPort: 9117
name: webui
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: jackett
- mountPath: /downloads
name: htpc-home
subPath: downloads
+1 -2
View File
@@ -8,12 +8,11 @@ commonLabels:
resources:
- namespace.yaml
- jackett.yaml
- radarr.yaml
- sonarr.yaml
- bazarr.yaml
- transmission.yaml
- emby.yaml
- plex.yaml
- prowlarr.yml
- ingress.yaml
+17 -21
View File
@@ -1,57 +1,53 @@
apiVersion: v1
kind: Service
metadata:
name: emby
name: plex
spec:
type: NodePort
ports:
- port: 8096
- port: 32400
protocol: TCP
targetPort: 8096
targetPort: 32400
name: webui
nodePort: 30002
selector:
run: emby
run: plex
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: emby
name: emby
run: plex
name: plex
spec:
replicas: 1
selector:
matchLabels:
run: emby
run: plex
template:
metadata:
labels:
run: emby
run: plex
spec:
securityContext:
fsGroup: 1000
containers:
- env:
- name: TZ
value: Pacific/Auckland
- name: UID
- name: PUID
value: "1000"
- name: GID
- name: PGID
value: "1000"
image: emby/embyserver
name: emby
image: linuxserver/plex
name: plex
ports:
- containerPort: 8096
- containerPort: 32400
name: webui
protocol: TCP
- containerPort: 8920
- containerPort: 32400
name: webui-ssl
protocol: TCP
volumeMounts:
- mountPath: /config
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: emby
subPath: plex
- mountPath: /tv
name: htpc-home
subPath: media/tv
+2 -20
View File
@@ -3,13 +3,11 @@ kind: Service
metadata:
name: prowlarr
spec:
type: NodePort
ports:
- port: 9696
protocol: TCP
targetPort: 9696
name: webui
nodePort: 30005
selector:
run: prowlarr
---
@@ -42,24 +40,8 @@ spec:
ports:
- containerPort: 9696
name: webui
# livenessProbe:
# exec:
# command:
# - /bin/sh
# - -c
# - curl "http://localhost:7878/radarr/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:7878/radarr/api/system/status?ApiKey=$(sed -ne '/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}' </config/config.xml)"
# initialDelaySeconds: 30
# periodSeconds: 10
volumeMounts:
- mountPath: /config
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: prowlarr
-11
View File
@@ -1,11 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: local-path-pvc
spec:
accessModes:
- ReadWriteOnce
storageClassName: local-path
resources:
requests:
storage: 2Gi
+16 -20
View File
@@ -3,13 +3,11 @@ kind: Service
metadata:
name: radarr
spec:
type: NodePort
ports:
- port: 7878
protocol: TCP
targetPort: 7878
name: webui
nodePort: 30006
selector:
run: radarr
---
@@ -30,8 +28,6 @@ spec:
run: radarr
spec:
securityContext:
# runAsUser: 1000
# runAsGroup: 1000
fsGroup: 1000
initContainers:
- name: chown
@@ -72,22 +68,22 @@ spec:
ports:
- containerPort: 7878
name: webui
# livenessProbe:
# exec:
# command:
# - /bin/sh
# - -c
# - curl "http://localhost:7878/radarr/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:7878/radarr/api/system/status?ApiKey=$(sed -ne '/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}' </config/config.xml)"
# initialDelaySeconds: 30
# periodSeconds: 10
livenessProbe:
exec:
command:
- /bin/sh
- -c
- curl "http://localhost:7878/radarr/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:7878/radarr/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
+17 -21
View File
@@ -3,13 +3,11 @@ kind: Service
metadata:
name: sonarr
spec:
type: NodePort
ports:
- port: 8989
protocol: TCP
targetPort: 8989
name: webui
nodePort: 30001
selector:
run: sonarr
---
@@ -30,9 +28,7 @@ spec:
run: sonarr
spec:
securityContext:
# runAsUser: 1000
# runAsGroup: 1000
fsGroup: 1000
fsGroup: 1000
initContainers:
- name: chown
image: busybox
@@ -72,22 +68,22 @@ spec:
ports:
- containerPort: 8989
name: webui
# livenessProbe:
# exec:
# command:
# - /bin/sh
# - -c
# - curl "http://localhost:8989/sonarr/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:8989/sonarr/api/system/status?ApiKey=$(sed -ne '/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}' </config/config.xml)"
# initialDelaySeconds: 30
# periodSeconds: 10
livenessProbe:
exec:
command:
- /bin/sh
- -c
- curl "http://localhost:8989/sonarr/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:8989/sonarr/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
+16 -20
View File
@@ -3,13 +3,11 @@ kind: Service
metadata:
name: transmission
spec:
type: NodePort
ports:
- port: 9091
protocol: TCP
targetPort: 9091
name: webui
nodePort: 30007
selector:
run: transmission
---
@@ -30,8 +28,6 @@ spec:
run: transmission
spec:
securityContext:
# runAsUser: 1000
# runAsGroup: 1000
fsGroup: 1000
initContainers:
- name: chown
@@ -47,22 +43,22 @@ spec:
- mountPath: /watch
name: htpc-home
subPath: watch
# - name: setup-transmission
# image: busybox
# securityContext:
# runAsUser: 1000
# runAsGroup: 1000
# command:
# - sh
# - -c
# - |
# echo Saving settings.json
# echo '{"download-dir": "/downloads", "rpc-whitelist-enabled": false, "rpc-host-whitelist-enabled": false}' > /config/settings.json;
# echo settings.json successfully saved
# volumeMounts:
# - mountPath: /config
# name: htpc-home
# subPath: transmission
- name: setup-transmission
image: busybox
securityContext:
runAsUser: 1000
runAsGroup: 1000
command:
- sh
- -c
- |
echo Saving settings.json
echo '{"download-dir": "/downloads", "rpc-whitelist-enabled": false, "rpc-host-whitelist-enabled": false}' > /config/settings.json;
echo settings.json successfully saved
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: transmission
containers:
- name: transmission
image: linuxserver/transmission
+2 -17
View File
@@ -40,20 +40,7 @@ spec:
apiVersion: apps/v1
kind: Deployment
metadata:
name: jackett
spec:
template:
spec:
volumes:
- hostPath:
path: /nfs/htpc
type: DirectoryOrCreate
name: htpc-home
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: emby
name: plex
spec:
template:
spec:
@@ -75,8 +62,6 @@ spec:
path: /nfs/htpc
type: DirectoryOrCreate
name: htpc-home
# persistentVolumeClaim:
# claimName: local-path-pvc
---
apiVersion: apps/v1
kind: Deployment
@@ -88,6 +73,6 @@ spec:
volumes:
- hostPath:
path: /nfs/htpc
type: DirectoryOrCreate
type: DirectoryOrCreate
name: htpc-home
---