Added initial commit files

This commit is contained in:
atusa-bw
2022-09-24 12:30:14 -06:00
commit 3faa49b7ef
24 changed files with 2378 additions and 0 deletions
+131
View File
@@ -0,0 +1,131 @@
apiVersion: v1
kind: Service
metadata:
name: bazarr
spec:
ports:
- port: 6767
protocol: TCP
targetPort: 6767
name: webui
selector:
run: bazarr
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: bazarr
name: bazarr
spec:
replicas: 1
selector:
matchLabels:
run: bazarr
template:
metadata:
labels:
run: bazarr
spec:
securityContext:
# runAsUser: 1000
# runAsGroup: 1000
fsGroup: 1000
initContainers:
- name: wait-for-sonarr-and-radarr
image: busybox
command: ['sh', '-c', 'until wget -qO- sonarr:8989/sonarr &> /dev/null && wget -qO- radarr:7878/radarr &> /dev/null; do echo waiting for sonarr and radarr; sleep 2; done;']
- name: config
image: busybox
command:
- "sh"
- "-c"
- |
mkdir -p /htpc/bazarr/config
export RADARR_API_KEY=$(cat /htpc/radarr/config.xml | sed -ne "/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}")
export SONARR_API_KEY=$(cat /htpc/sonarr/config.xml | sed -ne "/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}")
cat << EOF > /htpc/bazarr/config/config.ini
[sonarr]
apikey = ${SONARR_API_KEY}
full_update = Daily
ip = $(SONARR)
only_monitored = False
base_url = /$(SONARR)
ssl = False
port = 8989
[radarr]
apikey = ${RADARR_API_KEY}
full_update = Daily
ip = $(RADARR)
only_monitored = False
base_url = /$(RADARR)
ssl = False
port = 7878
[general]
movie_default_hi = False
movie_default_language = []
ip = 0.0.0.0
use_scenename = True
use_postprocessing = False
enabled_providers = subscene,tvsubtitles
auto_update = True
port = 6767
use_radarr = True
base_url = /bazarr/
page_size = 25
minimum_score_movie = 70
branch = master
single_language = False
use_sonarr = True
serie_default_hi = False
path_mappings_movie = [['/movies', '/movies'], ['', ''], ['', ''], ['', ''], ['', '']]
serie_default_enabled = False
movie_default_enabled = False
serie_default_language = []
path_mappings = [['/tv', '/tv'], ['', ''], ['', ''], ['', ''], ['', '']]
postprocessing_cmd =
minimum_score = 90
debug = False
use_embedded_subs = True
adaptive_searching = False
EOF
volumeMounts:
- mountPath: /htpc
name: htpc-home
containers:
- env:
- name: TZ
value: America/Denver
- name: PUID
value: "1000"
- name: PGID
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
ports:
- containerPort: 6767
name: webui
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: bazarr
- mountPath: /movies
name: htpc-home
subPath: media/movies
- mountPath: /tv
name: htpc-home
subPath: media/tv