Added initial commit files
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,58 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: emby
|
||||
spec:
|
||||
ports:
|
||||
- port: 8096
|
||||
protocol: TCP
|
||||
targetPort: 8096
|
||||
name: webui
|
||||
selector:
|
||||
run: emby
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
run: emby
|
||||
name: emby
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
run: emby
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
run: emby
|
||||
spec:
|
||||
securityContext:
|
||||
fsGroup: 1000
|
||||
containers:
|
||||
- env:
|
||||
- name: TZ
|
||||
value: Pacific/Auckland
|
||||
- name: UID
|
||||
value: "1000"
|
||||
- name: GID
|
||||
value: "1000"
|
||||
image: emby/embyserver
|
||||
name: emby
|
||||
ports:
|
||||
- containerPort: 8096
|
||||
name: webui
|
||||
protocol: TCP
|
||||
- containerPort: 8920
|
||||
name: webui-ssl
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: htpc-home
|
||||
subPath: emby
|
||||
- mountPath: /tv
|
||||
name: htpc-home
|
||||
subPath: media/tv
|
||||
- mountPath: /movies
|
||||
name: htpc-home
|
||||
subPath: media/movies
|
||||
@@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: transmission
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: transmission
|
||||
env:
|
||||
- name: TZ
|
||||
value: America/Denver
|
||||
- name: PUID
|
||||
value: "1000"
|
||||
- name: PGID
|
||||
value: "1000"
|
||||
@@ -0,0 +1,12 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: transmission
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: transmission
|
||||
env:
|
||||
- name: TZ
|
||||
value: America/Denver
|
||||
@@ -0,0 +1,64 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: htpc
|
||||
spec:
|
||||
rules:
|
||||
- http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Exact
|
||||
backend:
|
||||
service:
|
||||
name: emby
|
||||
port:
|
||||
number: 8096
|
||||
- path: /jackett
|
||||
pathType: Exact
|
||||
backend:
|
||||
service:
|
||||
name: jackett
|
||||
port:
|
||||
number: 9117
|
||||
- path: /sonarr
|
||||
pathType: Exact
|
||||
backend:
|
||||
service:
|
||||
name: sonarr
|
||||
port:
|
||||
number: 8989
|
||||
- path: /radarr
|
||||
pathType: Exact
|
||||
backend:
|
||||
service:
|
||||
name: radarr
|
||||
port:
|
||||
number: 7878
|
||||
- path: /bazarr
|
||||
pathType: Exact
|
||||
backend:
|
||||
service:
|
||||
name: bazarr
|
||||
port:
|
||||
number: 6767
|
||||
- path: /transmission
|
||||
pathType: Exact
|
||||
backend:
|
||||
service:
|
||||
name: transmission
|
||||
port:
|
||||
number: 9091
|
||||
- path: /plex
|
||||
pathType: Exact
|
||||
backend:
|
||||
service:
|
||||
name: plex
|
||||
port:
|
||||
number: 32400
|
||||
- path: /prowlarr
|
||||
pathType: Exact
|
||||
backend:
|
||||
service:
|
||||
name: prowlarr
|
||||
port:
|
||||
number: 9696
|
||||
@@ -0,0 +1,66 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: jackett
|
||||
spec:
|
||||
ports:
|
||||
- port: 9117
|
||||
protocol: TCP
|
||||
targetPort: 9117
|
||||
name: webui
|
||||
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
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
namespace: htpc
|
||||
|
||||
commonLabels:
|
||||
app: htpc
|
||||
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- jackett.yaml
|
||||
- radarr.yaml
|
||||
- sonarr.yaml
|
||||
- bazarr.yaml
|
||||
- transmission.yaml
|
||||
- emby.yaml
|
||||
- plex.yml
|
||||
- prowlarr.yml
|
||||
- ingress.yaml
|
||||
|
||||
patchesStrategicMerge:
|
||||
- volumes_patch.yaml
|
||||
- env_variables_patch.yaml
|
||||
|
||||
vars:
|
||||
- name: SONARR
|
||||
objref:
|
||||
kind: Service
|
||||
name: sonarr
|
||||
apiVersion: v1
|
||||
- name: RADARR
|
||||
objref:
|
||||
kind: Service
|
||||
name: radarr
|
||||
apiVersion: v1
|
||||
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: htpc
|
||||
@@ -0,0 +1,56 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: plex
|
||||
spec:
|
||||
ports:
|
||||
- port: 32400
|
||||
protocol: TCP
|
||||
targetPort: 32400
|
||||
name: webui
|
||||
selector:
|
||||
run: plex
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
run: plex
|
||||
name: plex
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
run: plex
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
run: plex
|
||||
spec:
|
||||
securityContext:
|
||||
fsGroup: 1000
|
||||
containers:
|
||||
- env:
|
||||
- name: PUID
|
||||
value: "1000"
|
||||
- name: PGID
|
||||
value: "1000"
|
||||
image: linuxserver/plex
|
||||
name: plex
|
||||
ports:
|
||||
- containerPort: 32400
|
||||
name: webui
|
||||
protocol: TCP
|
||||
- containerPort: 32400
|
||||
name: webui-ssl
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: htpc-home
|
||||
subPath: plex
|
||||
- mountPath: /tv
|
||||
name: htpc-home
|
||||
subPath: media/tv
|
||||
- mountPath: /movies
|
||||
name: htpc-home
|
||||
subPath: media/movies
|
||||
@@ -0,0 +1,63 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: prowlarr
|
||||
spec:
|
||||
ports:
|
||||
- port: 9696
|
||||
protocol: TCP
|
||||
targetPort: 9696
|
||||
name: webui
|
||||
selector:
|
||||
run: prowlarr
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
run: prowlarr
|
||||
name: prowlarr
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
run: prowlarr
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
run: prowlarr
|
||||
spec:
|
||||
containers:
|
||||
- env:
|
||||
- name: TZ
|
||||
value: America/Denver
|
||||
- name: PUID
|
||||
value: "1000"
|
||||
- name: PGID
|
||||
value: "1000"
|
||||
image: linuxserver/prowlarr
|
||||
name: prowlarr
|
||||
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
|
||||
name: htpc-home
|
||||
subPath: prowlarr
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: local-path-pvc
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: local-path
|
||||
resources:
|
||||
requests:
|
||||
storage: 2Gi
|
||||
@@ -0,0 +1,96 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: radarr
|
||||
spec:
|
||||
ports:
|
||||
- port: 7878
|
||||
protocol: TCP
|
||||
targetPort: 7878
|
||||
name: webui
|
||||
selector:
|
||||
run: radarr
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
run: radarr
|
||||
name: radarr
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
run: radarr
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
run: radarr
|
||||
spec:
|
||||
securityContext:
|
||||
# runAsUser: 1000
|
||||
# runAsGroup: 1000
|
||||
fsGroup: 1000
|
||||
initContainers:
|
||||
- name: chown
|
||||
image: busybox
|
||||
command: ["sh", "-c", "chown -R 1000:1000 /config && chown -R 1000:1000 /movies"]
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: htpc-home
|
||||
subPath: radarr
|
||||
- mountPath: /movies
|
||||
name: htpc-home
|
||||
subPath: media/movies
|
||||
- name: config
|
||||
image: busybox
|
||||
command: ["sh", "-c"]
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
args:
|
||||
- "echo start;[[ ! -f /config/config.xml ]] && echo '<Config><UrlBase>/$(RADARR)</UrlBase></Config>'> /config/config.xml;echo end;"
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: htpc-home
|
||||
subPath: radarr
|
||||
containers:
|
||||
- env:
|
||||
- name: TZ
|
||||
value: Pacific/Auckland
|
||||
- name: PUID
|
||||
value: "1000"
|
||||
- name: PGID
|
||||
value: "1000"
|
||||
image: linuxserver/radarr
|
||||
name: radarr
|
||||
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
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: htpc-home
|
||||
subPath: radarr
|
||||
- mountPath: /movies
|
||||
name: htpc-home
|
||||
subPath: media/movies
|
||||
- mountPath: /downloads
|
||||
name: htpc-home
|
||||
subPath: downloads
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: sonarr
|
||||
spec:
|
||||
ports:
|
||||
- port: 8989
|
||||
protocol: TCP
|
||||
targetPort: 8989
|
||||
name: webui
|
||||
selector:
|
||||
run: sonarr
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
run: sonarr
|
||||
name: sonarr
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
run: sonarr
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
run: sonarr
|
||||
spec:
|
||||
securityContext:
|
||||
# runAsUser: 1000
|
||||
# runAsGroup: 1000
|
||||
fsGroup: 1000
|
||||
initContainers:
|
||||
- name: chown
|
||||
image: busybox
|
||||
command: ["sh", "-c", "chown -R 1000:1000 /config && chown -R 1000:1000 /tv"]
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: htpc-home
|
||||
subPath: sonarr
|
||||
- mountPath: /tv
|
||||
name: htpc-home
|
||||
subPath: media/tv
|
||||
- name: config
|
||||
image: busybox
|
||||
command: ["sh", "-c"]
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
args:
|
||||
- "echo start;[[ ! -f /config/config.xml ]] && echo '<Config><UrlBase>/$(SONARR)</UrlBase></Config>'> /config/config.xml;echo end;"
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: htpc-home
|
||||
subPath: sonarr
|
||||
containers:
|
||||
- env:
|
||||
- name: TZ
|
||||
value: America/Denver
|
||||
- name: PUID
|
||||
value: "1000"
|
||||
- name: PGID
|
||||
value: "1000"
|
||||
image: linuxserver/sonarr
|
||||
name: sonarr
|
||||
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
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: htpc-home
|
||||
subPath: sonarr
|
||||
- mountPath: /tv
|
||||
name: htpc-home
|
||||
subPath: media/tv
|
||||
- mountPath: /downloads
|
||||
name: htpc-home
|
||||
subPath: downloads
|
||||
@@ -0,0 +1,99 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: transmission
|
||||
spec:
|
||||
ports:
|
||||
- port: 9091
|
||||
protocol: TCP
|
||||
targetPort: 9091
|
||||
name: webui
|
||||
selector:
|
||||
run: transmission
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
run: transmission
|
||||
name: transmission
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
run: transmission
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
run: transmission
|
||||
spec:
|
||||
securityContext:
|
||||
# runAsUser: 1000
|
||||
# runAsGroup: 1000
|
||||
fsGroup: 1000
|
||||
initContainers:
|
||||
- name: chown
|
||||
image: busybox
|
||||
command: ["sh", "-c", "chown -R 1000:1000 /config"]
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: htpc-home
|
||||
subPath: transmission
|
||||
- mountPath: /downloads
|
||||
name: htpc-home
|
||||
subPath: downloads
|
||||
- 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
|
||||
containers:
|
||||
- name: transmission
|
||||
image: linuxserver/transmission
|
||||
env:
|
||||
- name: TZ
|
||||
value: Pacific/Auckland
|
||||
- name: PUID
|
||||
value: "1000"
|
||||
- name: PGID
|
||||
value: "1000"
|
||||
- name: WHITELIST
|
||||
value: ""
|
||||
- name: HOST_WHITELIST
|
||||
value: ""
|
||||
ports:
|
||||
- containerPort: 9091
|
||||
name: webui
|
||||
protocol: TCP
|
||||
- containerPort: 51413
|
||||
name: torrent-tcp
|
||||
protocol: TCP
|
||||
- containerPort: 51413
|
||||
name: torrent-udp
|
||||
protocol: UDP
|
||||
resources: {}
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: htpc-home
|
||||
subPath: transmission
|
||||
- mountPath: /downloads
|
||||
name: htpc-home
|
||||
subPath: downloads
|
||||
- mountPath: /watch
|
||||
name: htpc-home
|
||||
subPath: watch
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: transmission
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
volumes:
|
||||
- hostPath:
|
||||
path: /opt/htpc
|
||||
type: DirectoryOrCreate
|
||||
name: htpc-home
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: radarr
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
volumes:
|
||||
- hostPath:
|
||||
path: /opt/htpc
|
||||
type: DirectoryOrCreate
|
||||
name: htpc-home
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: sonarr
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
volumes:
|
||||
- hostPath:
|
||||
path: /opt/htpc
|
||||
type: DirectoryOrCreate
|
||||
name: htpc-home
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: jackett
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
volumes:
|
||||
- hostPath:
|
||||
path: /opt/htpc
|
||||
type: DirectoryOrCreate
|
||||
name: htpc-home
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: emby
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
volumes:
|
||||
- hostPath:
|
||||
path: /opt/htpc
|
||||
type: DirectoryOrCreate
|
||||
name: htpc-home
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: bazarr
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
volumes:
|
||||
- hostPath:
|
||||
path: /opt/htpc
|
||||
type: DirectoryOrCreate
|
||||
name: htpc-home
|
||||
# persistentVolumeClaim:
|
||||
# claimName: local-path-pvc
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: plex
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
volumes:
|
||||
- hostPath:
|
||||
path: /opt/htpc
|
||||
type: DirectoryOrCreate
|
||||
name: htpc-home
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: prowlarr
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
volumes:
|
||||
- hostPath:
|
||||
path: /opt/htpc
|
||||
type: DirectoryOrCreate
|
||||
name: htpc-home
|
||||
---
|
||||
Reference in New Issue
Block a user