Cleaned repo a bit.
This commit is contained in:
@@ -1,53 +1,23 @@
|
|||||||

|
|
||||||
|
|
||||||
# HTPC powered by k3s
|
# HTPC powered by k3s
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
This is my current [HTPC](https://en.wikipedia.org/wiki/Home_theater_PC) setup. It runs on [k3s](https://k3s.io/) - a lightweight and easy to install Kubernetes distribution.
|
This is my current [HTPC](https://en.wikipedia.org/wiki/Home_theater_PC) setup. It runs on [k3s](https://k3s.io/) - a lightweight and easy to install Kubernetes distribution.
|
||||||
It includes the following applications:
|
It includes the following applications:
|
||||||
|
|
||||||
* [Sonarr](https://sonarr.tv/) for tv shows
|
* [Sonarr](https://sonarr.tv/) - for tv shows
|
||||||
* [Radarr](https://radarr.video/) for movies
|
* [Radarr](https://radarr.video/) - for movies
|
||||||
* [Bazarr](https://github.com/morpheus65535/bazarr) for subtitles
|
* [Bazarr](https://github.com/morpheus65535/bazarr) - for subtitles
|
||||||
* Transmission for torrents
|
* [Transmission](https://transmissionbt.com/) - for torrents
|
||||||
* [Jackett](https://github.com/Jackett/Jackett)
|
* [Prowlarr](https://wiki.servarr.com/prowlarr) - torrent indexer that synchronizes torrent indexers between Sonarr and Radarr
|
||||||
* [Emby](https://emby.media/)
|
* [Plex](https://www.plex.tv/) - Media server to stream shows and movies
|
||||||
|
|
||||||
Applications state (settings / db) and media files are stored in a shared volume of type `hostPath`. It does not use PVC and currently only works if the whole `htpc` namespace is deployed in the same node.
|
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
### Quickstart
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# for x86_64
|
|
||||||
kubectl apply -f https://raw.githubusercontent.com/fabito/htk8s/v0.1/install_x86_64.yaml
|
|
||||||
|
|
||||||
# for raspberry pi (ARM)
|
|
||||||
kubectl apply -f https://raw.githubusercontent.com/fabito/htk8s/v0.1/install_armhf.yaml
|
|
||||||
```
|
|
||||||
|
|
||||||
### The Gitops way
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# x86_64 only
|
|
||||||
kubectl apply -f https://raw.githubusercontent.com/fabito/htk8s/v0.1/install_argocd.yaml
|
|
||||||
```
|
|
||||||
|
|
||||||
This alternate manifest will install [Argo CD](https://github.com/argoproj/argo-cd) along with the [htpc application](argocd/application.yaml). Then it will monitor this repo for changes and apply them to the cluster accordingly (more specifically the `overlays/x86`overlay).
|
|
||||||
|
|
||||||
You can access the Argo CD ui at: https://localhost/argocd.
|
|
||||||
|
|
||||||
### Verifying the installation
|
### Verifying the installation
|
||||||
|
|
||||||
All resources are created in the `htpc` namespace. So if you run:
|
All resources are created in the `htpc` namespace. So if you run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
k3s kubectl get all -n htpc
|
kubectl get all -n htpc
|
||||||
```
|
```
|
||||||
|
|
||||||
You should get something similar to:
|
You should get something similar to:
|
||||||
@@ -55,32 +25,32 @@ You should get something similar to:
|
|||||||
```bash
|
```bash
|
||||||
NAME READY STATUS RESTARTS AGE
|
NAME READY STATUS RESTARTS AGE
|
||||||
pod/bazarr-795f88c5c9-w75l7 1/1 Running 0 24h
|
pod/bazarr-795f88c5c9-w75l7 1/1 Running 0 24h
|
||||||
pod/emby-6f457df664-fqbmc 1/1 Running 0 24h
|
pod/plex-6f457df664-fqbmc 1/1 Running 0 24h
|
||||||
pod/jackett-6bcf6cd8d6-lrh6j 1/1 Running 0 24h
|
pod/prowlarr-6bcf6cd8d6-lrh6j 1/1 Running 0 24h
|
||||||
pod/radarr-5c965c7678-zt8sq 1/1 Running 0 24h
|
pod/radarr-5c965c7678-zt8sq 1/1 Running 0 24h
|
||||||
pod/sonarr-b65c8956-mxng4 1/1 Running 0 24h
|
pod/sonarr-b65c8956-mxng4 1/1 Running 0 24h
|
||||||
pod/transmission-5f7fdc6cb5-nrtbb 1/1 Running 0 24h
|
pod/transmission-5f7fdc6cb5-nrtbb 1/1 Running 0 24h
|
||||||
|
|
||||||
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
|
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
|
||||||
service/bazarr ClusterIP 10.43.43.224 <none> 6767/TCP 24h
|
service/bazarr ClusterIP 10.43.43.224 <none> 6767/TCP 24h
|
||||||
service/emby ClusterIP 10.43.212.198 <none> 8096/TCP 24h
|
service/plex ClusterIP 10.43.212.198 <none> 32400/TCP 24h
|
||||||
service/jackett ClusterIP 10.43.104.233 <none> 9117/TCP 24h
|
service/prowlarr ClusterIP 10.43.104.233 <none> 9696/TCP 24h
|
||||||
service/radarr ClusterIP 10.43.141.101 <none> 7878/TCP 24h
|
service/radarr ClusterIP 10.43.141.101 <none> 7878/TCP 24h
|
||||||
service/sonarr ClusterIP 10.43.35.98 <none> 8989/TCP 24h
|
service/sonarr ClusterIP 10.43.35.98 <none> 8989/TCP 24h
|
||||||
service/transmission ClusterIP 10.43.184.198 <none> 9091/TCP 24h
|
service/transmission ClusterIP 10.43.184.198 <none> 9091/TCP 24h
|
||||||
|
|
||||||
NAME READY UP-TO-DATE AVAILABLE AGE
|
NAME READY UP-TO-DATE AVAILABLE AGE
|
||||||
deployment.apps/bazarr 1/1 1 1 24h
|
deployment.apps/bazarr 1/1 1 1 24h
|
||||||
deployment.apps/emby 1/1 1 1 24h
|
deployment.apps/plex 1/1 1 1 24h
|
||||||
deployment.apps/jackett 1/1 1 1 24h
|
deployment.apps/prowlarr 1/1 1 1 24h
|
||||||
deployment.apps/radarr 1/1 1 1 24h
|
deployment.apps/radarr 1/1 1 1 24h
|
||||||
deployment.apps/sonarr 1/1 1 1 24h
|
deployment.apps/sonarr 1/1 1 1 24h
|
||||||
deployment.apps/transmission 1/1 1 1 24h
|
deployment.apps/transmission 1/1 1 1 24h
|
||||||
|
|
||||||
NAME DESIRED CURRENT READY AGE
|
NAME DESIRED CURRENT READY AGE
|
||||||
replicaset.apps/bazarr-795f88c5c9 1 1 1 24h
|
replicaset.apps/bazarr-795f88c5c9 1 1 1 24h
|
||||||
replicaset.apps/emby-6f457df664 1 1 1 24h
|
replicaset.apps/plex-6f457df664 1 1 1 24h
|
||||||
replicaset.apps/jackett-6bcf6cd8d6 1 1 1 24h
|
replicaset.apps/prowlarr-6bcf6cd8d6 1 1 1 24h
|
||||||
replicaset.apps/radarr-5c965c7678 1 1 1 24h
|
replicaset.apps/radarr-5c965c7678 1 1 1 24h
|
||||||
replicaset.apps/sonarr-b65c8956 1 1 1 24h
|
replicaset.apps/sonarr-b65c8956 1 1 1 24h
|
||||||
replicaset.apps/transmission-5f7fdc6cb5 1 1 1 24h
|
replicaset.apps/transmission-5f7fdc6cb5 1 1 1 24h
|
||||||
@@ -88,31 +58,31 @@ replicaset.apps/transmission-5f7fdc6cb5 1 1 1 24h
|
|||||||
|
|
||||||
You should also be able to reach each component's ui using the links below. Don't forget to replace `localhost` by the IP or the server name running k3s.
|
You should also be able to reach each component's ui using the links below. Don't forget to replace `localhost` by the IP or the server name running k3s.
|
||||||
|
|
||||||
|App|URI
|
| App | URI |
|
||||||
|---|---
|
|--------------|-------------------------------|
|
||||||
|radarr|http://localhost/radarr
|
| radarr | http://localhost/radarr |
|
||||||
|sonarr|http://localhost/sonarr
|
| sonarr | http://localhost/sonarr |
|
||||||
|bazarr|http://localhost/bazarr
|
| bazarr | http://localhost/bazarr |
|
||||||
|jacket|http://localhost/jackett
|
| prowlarr | http://localhost/prowlarr |
|
||||||
|transmission|http://localhost/transmission
|
| transmission | http://localhost/transmission |
|
||||||
|emby|http://localhost/
|
| plex | http://localhost/ |
|
||||||
|
|
||||||
Check the [ingress.yaml](base/ingress.yaml) for more details.
|
Check the [ingress.yaml](base/ingress.yaml) for more details.
|
||||||
|
|
||||||
Each module except for Emby is configured to respond on a custom basepath (check the init containers logic for more details).
|
Each module except for Plex is configured to respond on a custom basepath (check the init containers logic for more details).
|
||||||
|
|
||||||
## How it works (WIP)
|
## How it works (WIP)
|
||||||
|
|
||||||
It uses [LinuxServers](https://www.linuxserver.io/our-images/) images.
|
All images are provided by [LinuxServers](https://www.linuxserver.io/our-images/).
|
||||||
|
|
||||||
It uses a `hostPath` volume to store configuration and media files. It defaults to the `/opt/htpc` directory
|
The namespace uses an NFS volume to store configuration and media files. It defaults to the directory: `/nfs/htpc`
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
/opt/htpc
|
/nfs/htpc
|
||||||
├── bazarr
|
├── bazarr
|
||||||
├── downloads
|
├── downloads
|
||||||
├── emby
|
├── plex
|
||||||
├── jackett
|
├── prowlarr
|
||||||
├── media
|
├── media
|
||||||
│ ├── movies
|
│ ├── movies
|
||||||
│ └── tv
|
│ └── tv
|
||||||
|
|||||||
+12
-16
@@ -3,13 +3,11 @@ kind: Service
|
|||||||
metadata:
|
metadata:
|
||||||
name: bazarr
|
name: bazarr
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
|
||||||
ports:
|
ports:
|
||||||
- port: 6767
|
- port: 6767
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: 6767
|
targetPort: 6767
|
||||||
name: webui
|
name: webui
|
||||||
nodePort: 30003
|
|
||||||
selector:
|
selector:
|
||||||
run: bazarr
|
run: bazarr
|
||||||
---
|
---
|
||||||
@@ -30,8 +28,6 @@ spec:
|
|||||||
run: bazarr
|
run: bazarr
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
# runAsUser: 1000
|
|
||||||
# runAsGroup: 1000
|
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: wait-for-sonarr-and-radarr
|
- name: wait-for-sonarr-and-radarr
|
||||||
@@ -106,18 +102,18 @@ spec:
|
|||||||
value: "1000"
|
value: "1000"
|
||||||
image: linuxserver/bazarr
|
image: linuxserver/bazarr
|
||||||
name: bazarr
|
name: bazarr
|
||||||
# livenessProbe:
|
livenessProbe:
|
||||||
# httpGet:
|
httpGet:
|
||||||
# path: /bazarr
|
path: /bazarr
|
||||||
# port: webui
|
port: webui
|
||||||
# initialDelaySeconds: 200
|
initialDelaySeconds: 200
|
||||||
# periodSeconds: 15
|
periodSeconds: 15
|
||||||
# readinessProbe:
|
readinessProbe:
|
||||||
# httpGet:
|
httpGet:
|
||||||
# path: /bazarr
|
path: /bazarr
|
||||||
# port: webui
|
port: webui
|
||||||
# initialDelaySeconds: 200
|
initialDelaySeconds: 200
|
||||||
# periodSeconds: 15
|
periodSeconds: 15
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 6767
|
- containerPort: 6767
|
||||||
name: webui
|
name: webui
|
||||||
|
|||||||
+1
-8
@@ -16,14 +16,7 @@ spec:
|
|||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: emby
|
name: plex
|
||||||
port:
|
|
||||||
name: webui
|
|
||||||
- path: /jackett
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: jackett
|
|
||||||
port:
|
port:
|
||||||
name: webui
|
name: webui
|
||||||
- path: /sonarr
|
- path: /sonarr
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|
||||||
@@ -8,12 +8,11 @@ commonLabels:
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- jackett.yaml
|
|
||||||
- radarr.yaml
|
- radarr.yaml
|
||||||
- sonarr.yaml
|
- sonarr.yaml
|
||||||
- bazarr.yaml
|
- bazarr.yaml
|
||||||
- transmission.yaml
|
- transmission.yaml
|
||||||
- emby.yaml
|
- plex.yaml
|
||||||
- prowlarr.yml
|
- prowlarr.yml
|
||||||
- ingress.yaml
|
- ingress.yaml
|
||||||
|
|
||||||
|
|||||||
@@ -1,57 +1,53 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: emby
|
name: plex
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
|
||||||
ports:
|
ports:
|
||||||
- port: 8096
|
- port: 32400
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: 8096
|
targetPort: 32400
|
||||||
name: webui
|
name: webui
|
||||||
nodePort: 30002
|
|
||||||
selector:
|
selector:
|
||||||
run: emby
|
run: plex
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
run: emby
|
run: plex
|
||||||
name: emby
|
name: plex
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
run: emby
|
run: plex
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
run: emby
|
run: plex
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
containers:
|
containers:
|
||||||
- env:
|
- env:
|
||||||
- name: TZ
|
- name: PUID
|
||||||
value: Pacific/Auckland
|
|
||||||
- name: UID
|
|
||||||
value: "1000"
|
value: "1000"
|
||||||
- name: GID
|
- name: PGID
|
||||||
value: "1000"
|
value: "1000"
|
||||||
image: emby/embyserver
|
image: linuxserver/plex
|
||||||
name: emby
|
name: plex
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8096
|
- containerPort: 32400
|
||||||
name: webui
|
name: webui
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
- containerPort: 8920
|
- containerPort: 32400
|
||||||
name: webui-ssl
|
name: webui-ssl
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /config
|
- mountPath: /config
|
||||||
name: htpc-home
|
name: htpc-home
|
||||||
subPath: emby
|
subPath: plex
|
||||||
- mountPath: /tv
|
- mountPath: /tv
|
||||||
name: htpc-home
|
name: htpc-home
|
||||||
subPath: media/tv
|
subPath: media/tv
|
||||||
@@ -3,13 +3,11 @@ kind: Service
|
|||||||
metadata:
|
metadata:
|
||||||
name: prowlarr
|
name: prowlarr
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
|
||||||
ports:
|
ports:
|
||||||
- port: 9696
|
- port: 9696
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: 9696
|
targetPort: 9696
|
||||||
name: webui
|
name: webui
|
||||||
nodePort: 30005
|
|
||||||
selector:
|
selector:
|
||||||
run: prowlarr
|
run: prowlarr
|
||||||
---
|
---
|
||||||
@@ -42,22 +40,6 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- containerPort: 9696
|
- containerPort: 9696
|
||||||
name: webui
|
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:
|
volumeMounts:
|
||||||
- mountPath: /config
|
- mountPath: /config
|
||||||
name: htpc-home
|
name: htpc-home
|
||||||
|
|||||||
@@ -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
@@ -3,13 +3,11 @@ kind: Service
|
|||||||
metadata:
|
metadata:
|
||||||
name: radarr
|
name: radarr
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
|
||||||
ports:
|
ports:
|
||||||
- port: 7878
|
- port: 7878
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: 7878
|
targetPort: 7878
|
||||||
name: webui
|
name: webui
|
||||||
nodePort: 30006
|
|
||||||
selector:
|
selector:
|
||||||
run: radarr
|
run: radarr
|
||||||
---
|
---
|
||||||
@@ -30,8 +28,6 @@ spec:
|
|||||||
run: radarr
|
run: radarr
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
# runAsUser: 1000
|
|
||||||
# runAsGroup: 1000
|
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: chown
|
- name: chown
|
||||||
@@ -72,22 +68,22 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- containerPort: 7878
|
- containerPort: 7878
|
||||||
name: webui
|
name: webui
|
||||||
# livenessProbe:
|
livenessProbe:
|
||||||
# exec:
|
exec:
|
||||||
# command:
|
command:
|
||||||
# - /bin/sh
|
- /bin/sh
|
||||||
# - -c
|
- -c
|
||||||
# - curl "http://localhost:7878/radarr/api/health?ApiKey=$(sed -ne '/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}' </config/config.xml)"
|
- curl "http://localhost:7878/radarr/api/health?ApiKey=$(sed -ne '/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}' </config/config.xml)"
|
||||||
# initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
# periodSeconds: 10
|
periodSeconds: 10
|
||||||
# readinessProbe:
|
readinessProbe:
|
||||||
# exec:
|
exec:
|
||||||
# command:
|
command:
|
||||||
# - /bin/sh
|
- /bin/sh
|
||||||
# - -c
|
- -c
|
||||||
# - curl "http://localhost:7878/radarr/api/system/status?ApiKey=$(sed -ne '/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}' </config/config.xml)"
|
- curl "http://localhost:7878/radarr/api/system/status?ApiKey=$(sed -ne '/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}' </config/config.xml)"
|
||||||
# initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
# periodSeconds: 10
|
periodSeconds: 10
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /config
|
- mountPath: /config
|
||||||
name: htpc-home
|
name: htpc-home
|
||||||
|
|||||||
+16
-20
@@ -3,13 +3,11 @@ kind: Service
|
|||||||
metadata:
|
metadata:
|
||||||
name: sonarr
|
name: sonarr
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
|
||||||
ports:
|
ports:
|
||||||
- port: 8989
|
- port: 8989
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: 8989
|
targetPort: 8989
|
||||||
name: webui
|
name: webui
|
||||||
nodePort: 30001
|
|
||||||
selector:
|
selector:
|
||||||
run: sonarr
|
run: sonarr
|
||||||
---
|
---
|
||||||
@@ -30,8 +28,6 @@ spec:
|
|||||||
run: sonarr
|
run: sonarr
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
# runAsUser: 1000
|
|
||||||
# runAsGroup: 1000
|
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: chown
|
- name: chown
|
||||||
@@ -72,22 +68,22 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- containerPort: 8989
|
- containerPort: 8989
|
||||||
name: webui
|
name: webui
|
||||||
# livenessProbe:
|
livenessProbe:
|
||||||
# exec:
|
exec:
|
||||||
# command:
|
command:
|
||||||
# - /bin/sh
|
- /bin/sh
|
||||||
# - -c
|
- -c
|
||||||
# - curl "http://localhost:8989/sonarr/api/health?ApiKey=$(sed -ne '/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}' </config/config.xml)"
|
- curl "http://localhost:8989/sonarr/api/health?ApiKey=$(sed -ne '/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}' </config/config.xml)"
|
||||||
# initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
# periodSeconds: 10
|
periodSeconds: 10
|
||||||
# readinessProbe:
|
readinessProbe:
|
||||||
# exec:
|
exec:
|
||||||
# command:
|
command:
|
||||||
# - /bin/sh
|
- /bin/sh
|
||||||
# - -c
|
- -c
|
||||||
# - curl "http://localhost:8989/sonarr/api/system/status?ApiKey=$(sed -ne '/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}' </config/config.xml)"
|
- curl "http://localhost:8989/sonarr/api/system/status?ApiKey=$(sed -ne '/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}' </config/config.xml)"
|
||||||
# initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
# periodSeconds: 10
|
periodSeconds: 10
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /config
|
- mountPath: /config
|
||||||
name: htpc-home
|
name: htpc-home
|
||||||
|
|||||||
+16
-20
@@ -3,13 +3,11 @@ kind: Service
|
|||||||
metadata:
|
metadata:
|
||||||
name: transmission
|
name: transmission
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
|
||||||
ports:
|
ports:
|
||||||
- port: 9091
|
- port: 9091
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: 9091
|
targetPort: 9091
|
||||||
name: webui
|
name: webui
|
||||||
nodePort: 30007
|
|
||||||
selector:
|
selector:
|
||||||
run: transmission
|
run: transmission
|
||||||
---
|
---
|
||||||
@@ -30,8 +28,6 @@ spec:
|
|||||||
run: transmission
|
run: transmission
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
# runAsUser: 1000
|
|
||||||
# runAsGroup: 1000
|
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: chown
|
- name: chown
|
||||||
@@ -47,22 +43,22 @@ spec:
|
|||||||
- mountPath: /watch
|
- mountPath: /watch
|
||||||
name: htpc-home
|
name: htpc-home
|
||||||
subPath: watch
|
subPath: watch
|
||||||
# - name: setup-transmission
|
- name: setup-transmission
|
||||||
# image: busybox
|
image: busybox
|
||||||
# securityContext:
|
securityContext:
|
||||||
# runAsUser: 1000
|
runAsUser: 1000
|
||||||
# runAsGroup: 1000
|
runAsGroup: 1000
|
||||||
# command:
|
command:
|
||||||
# - sh
|
- sh
|
||||||
# - -c
|
- -c
|
||||||
# - |
|
- |
|
||||||
# echo Saving settings.json
|
echo Saving settings.json
|
||||||
# echo '{"download-dir": "/downloads", "rpc-whitelist-enabled": false, "rpc-host-whitelist-enabled": false}' > /config/settings.json;
|
echo '{"download-dir": "/downloads", "rpc-whitelist-enabled": false, "rpc-host-whitelist-enabled": false}' > /config/settings.json;
|
||||||
# echo settings.json successfully saved
|
echo settings.json successfully saved
|
||||||
# volumeMounts:
|
volumeMounts:
|
||||||
# - mountPath: /config
|
- mountPath: /config
|
||||||
# name: htpc-home
|
name: htpc-home
|
||||||
# subPath: transmission
|
subPath: transmission
|
||||||
containers:
|
containers:
|
||||||
- name: transmission
|
- name: transmission
|
||||||
image: linuxserver/transmission
|
image: linuxserver/transmission
|
||||||
|
|||||||
+1
-16
@@ -40,20 +40,7 @@ spec:
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: jackett
|
name: plex
|
||||||
spec:
|
|
||||||
template:
|
|
||||||
spec:
|
|
||||||
volumes:
|
|
||||||
- hostPath:
|
|
||||||
path: /nfs/htpc
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
name: htpc-home
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: emby
|
|
||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
@@ -75,8 +62,6 @@ spec:
|
|||||||
path: /nfs/htpc
|
path: /nfs/htpc
|
||||||
type: DirectoryOrCreate
|
type: DirectoryOrCreate
|
||||||
name: htpc-home
|
name: htpc-home
|
||||||
# persistentVolumeClaim:
|
|
||||||
# claimName: local-path-pvc
|
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
|||||||
@@ -1,640 +0,0 @@
|
|||||||
# This is an auto-generated file. DO NOT EDIT
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
name: htpc
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
name: bazarr
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: webui
|
|
||||||
port: 6767
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 6767
|
|
||||||
selector:
|
|
||||||
app: htpc
|
|
||||||
run: bazarr
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
name: emby
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: webui
|
|
||||||
port: 8096
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 8096
|
|
||||||
selector:
|
|
||||||
app: htpc
|
|
||||||
run: emby
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
name: jackett
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: webui
|
|
||||||
port: 9117
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 9117
|
|
||||||
selector:
|
|
||||||
app: htpc
|
|
||||||
run: jackett
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
name: radarr
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: webui
|
|
||||||
port: 7878
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 7878
|
|
||||||
selector:
|
|
||||||
app: htpc
|
|
||||||
run: radarr
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
name: sonarr
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: webui
|
|
||||||
port: 8989
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 8989
|
|
||||||
selector:
|
|
||||||
app: htpc
|
|
||||||
run: sonarr
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
name: transmission
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: webui
|
|
||||||
port: 9091
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 9091
|
|
||||||
selector:
|
|
||||||
app: htpc
|
|
||||||
run: transmission
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: bazarr
|
|
||||||
name: bazarr
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: htpc
|
|
||||||
run: bazarr
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: bazarr
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- env:
|
|
||||||
- name: TZ
|
|
||||||
value: Pacific/Auckland
|
|
||||||
- name: PUID
|
|
||||||
value: "1000"
|
|
||||||
- name: PGID
|
|
||||||
value: "1000"
|
|
||||||
image: linuxserver/bazarr:arm32v6-latest
|
|
||||||
name: bazarr
|
|
||||||
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
|
|
||||||
initContainers:
|
|
||||||
- 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;
|
|
||||||
image: busybox
|
|
||||||
name: wait-for-sonarr-and-radarr
|
|
||||||
- command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- "mkdir -p /htpc/bazarr/config\nexport RADARR_API_KEY=$(cat /htpc/radarr/config.xml
|
|
||||||
| sed -ne \"/ApiKey/{s/.*<ApiKey>\\(.*\\)<\\/ApiKey>.*/\\1/p;q;}\")\nexport
|
|
||||||
SONARR_API_KEY=$(cat /htpc/sonarr/config.xml | sed -ne \"/ApiKey/{s/.*<ApiKey>\\(.*\\)<\\/ApiKey>.*/\\1/p;q;}\")\ncat
|
|
||||||
<< EOF > /htpc/bazarr/config/config.ini\n[sonarr]\napikey = ${SONARR_API_KEY}\nfull_update
|
|
||||||
= Daily\nip = sonarr\nonly_monitored = False\nbase_url = /sonarr\nssl =
|
|
||||||
False\nport = 8989\n\n[radarr]\napikey = ${RADARR_API_KEY}\nfull_update
|
|
||||||
= Daily\nip = radarr\nonly_monitored = False\nbase_url = /radarr\nssl =
|
|
||||||
False\nport = 7878\n\n[general]\nmovie_default_hi = False\nmovie_default_language
|
|
||||||
= []\nip = 0.0.0.0\nuse_scenename = True\nuse_postprocessing = False\nenabled_providers
|
|
||||||
= subscene,tvsubtitles\nauto_update = True\nport = 6767\nuse_radarr = True\nbase_url
|
|
||||||
= /bazarr/\npage_size = 25\nminimum_score_movie = 70\nbranch = master\nsingle_language
|
|
||||||
= False\nuse_sonarr = True\nserie_default_hi = False\npath_mappings_movie
|
|
||||||
= [['/movies', '/movies'], ['', ''], ['', ''], ['', ''], ['', '']]\nserie_default_enabled
|
|
||||||
= False\nmovie_default_enabled = False\nserie_default_language = []\npath_mappings
|
|
||||||
= [['/tv', '/tv'], ['', ''], ['', ''], ['', ''], ['', '']]\npostprocessing_cmd
|
|
||||||
= \nminimum_score = 90\ndebug = False\nuse_embedded_subs = True\nadaptive_searching
|
|
||||||
= False\nEOF\n"
|
|
||||||
image: busybox
|
|
||||||
name: config
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /htpc
|
|
||||||
name: htpc-home
|
|
||||||
securityContext:
|
|
||||||
fsGroup: 1000
|
|
||||||
volumes:
|
|
||||||
- hostPath:
|
|
||||||
path: /opt/htpc
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
name: htpc-home
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: emby
|
|
||||||
name: emby
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: htpc
|
|
||||||
run: emby
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: emby
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- env:
|
|
||||||
- name: TZ
|
|
||||||
value: Pacific/Auckland
|
|
||||||
- name: UID
|
|
||||||
value: "1000"
|
|
||||||
- name: GID
|
|
||||||
value: "1000"
|
|
||||||
image: emby/embyserver_arm32v7:latest
|
|
||||||
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
|
|
||||||
securityContext:
|
|
||||||
fsGroup: 1000
|
|
||||||
volumes:
|
|
||||||
- hostPath:
|
|
||||||
path: /opt/htpc
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
name: htpc-home
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: jackett
|
|
||||||
name: jackett
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: htpc
|
|
||||||
run: jackett
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: jackett
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- env:
|
|
||||||
- name: TZ
|
|
||||||
value: Pacific/Auckland
|
|
||||||
- name: PUID
|
|
||||||
value: "1000"
|
|
||||||
- name: PGID
|
|
||||||
value: "1000"
|
|
||||||
image: linuxserver/jackett:arm32v6-latest
|
|
||||||
name: jackett
|
|
||||||
ports:
|
|
||||||
- containerPort: 9117
|
|
||||||
name: webui
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /config
|
|
||||||
name: htpc-home
|
|
||||||
subPath: jackett
|
|
||||||
- mountPath: /downloads
|
|
||||||
name: htpc-home
|
|
||||||
subPath: downloads
|
|
||||||
initContainers:
|
|
||||||
- args:
|
|
||||||
- 'echo start; [[ ! -f /config/Jackett/ServerConfig.json ]] && mkdir -p /config/Jackett/
|
|
||||||
&& echo ''{ "BasePathOverride": "/jackett"}'' > /config/Jackett/ServerConfig.json;
|
|
||||||
echo end;'
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
image: busybox
|
|
||||||
name: config
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /config
|
|
||||||
name: htpc-home
|
|
||||||
subPath: jackett
|
|
||||||
securityContext:
|
|
||||||
fsGroup: 1000
|
|
||||||
volumes:
|
|
||||||
- hostPath:
|
|
||||||
path: /opt/htpc
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
name: htpc-home
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: radarr
|
|
||||||
name: radarr
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: htpc
|
|
||||||
run: radarr
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: radarr
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- env:
|
|
||||||
- name: TZ
|
|
||||||
value: Pacific/Auckland
|
|
||||||
- name: PUID
|
|
||||||
value: "1000"
|
|
||||||
- name: PGID
|
|
||||||
value: "1000"
|
|
||||||
image: linuxserver/radarr:arm32v6-latest
|
|
||||||
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
|
|
||||||
name: radarr
|
|
||||||
ports:
|
|
||||||
- containerPort: 7878
|
|
||||||
name: webui
|
|
||||||
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
|
|
||||||
initContainers:
|
|
||||||
- command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- chown -R 1000:1000 /config && chown -R 1000:1000 /movies
|
|
||||||
image: busybox
|
|
||||||
name: chown
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /config
|
|
||||||
name: htpc-home
|
|
||||||
subPath: radarr
|
|
||||||
- mountPath: /movies
|
|
||||||
name: htpc-home
|
|
||||||
subPath: media/movies
|
|
||||||
- args:
|
|
||||||
- echo start;[[ ! -f /config/config.xml ]] && echo '<Config><UrlBase>/radarr</UrlBase></Config>'>
|
|
||||||
/config/config.xml;echo end;
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
image: busybox
|
|
||||||
name: config
|
|
||||||
securityContext:
|
|
||||||
runAsGroup: 1000
|
|
||||||
runAsUser: 1000
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /config
|
|
||||||
name: htpc-home
|
|
||||||
subPath: radarr
|
|
||||||
securityContext:
|
|
||||||
fsGroup: 1000
|
|
||||||
volumes:
|
|
||||||
- hostPath:
|
|
||||||
path: /opt/htpc
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
name: htpc-home
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: sonarr
|
|
||||||
name: sonarr
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: htpc
|
|
||||||
run: sonarr
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: sonarr
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- env:
|
|
||||||
- name: TZ
|
|
||||||
value: Pacific/Auckland
|
|
||||||
- name: PUID
|
|
||||||
value: "1000"
|
|
||||||
- name: PGID
|
|
||||||
value: "1000"
|
|
||||||
image: linuxserver/sonarr:arm32v6-latest
|
|
||||||
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
|
|
||||||
name: sonarr
|
|
||||||
ports:
|
|
||||||
- containerPort: 8989
|
|
||||||
name: webui
|
|
||||||
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
|
|
||||||
initContainers:
|
|
||||||
- command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- chown -R 1000:1000 /config && chown -R 1000:1000 /tv
|
|
||||||
image: busybox
|
|
||||||
name: chown
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /config
|
|
||||||
name: htpc-home
|
|
||||||
subPath: sonarr
|
|
||||||
- mountPath: /tv
|
|
||||||
name: htpc-home
|
|
||||||
subPath: media/tv
|
|
||||||
- args:
|
|
||||||
- echo start;[[ ! -f /config/config.xml ]] && echo '<Config><UrlBase>/sonarr</UrlBase></Config>'>
|
|
||||||
/config/config.xml;echo end;
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
image: busybox
|
|
||||||
name: config
|
|
||||||
securityContext:
|
|
||||||
runAsGroup: 1000
|
|
||||||
runAsUser: 1000
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /config
|
|
||||||
name: htpc-home
|
|
||||||
subPath: sonarr
|
|
||||||
securityContext:
|
|
||||||
fsGroup: 1000
|
|
||||||
volumes:
|
|
||||||
- hostPath:
|
|
||||||
path: /opt/htpc
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
name: htpc-home
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: transmission
|
|
||||||
name: transmission
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: htpc
|
|
||||||
run: transmission
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: transmission
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- env:
|
|
||||||
- name: TZ
|
|
||||||
value: Pacific/Auckland
|
|
||||||
- name: PUID
|
|
||||||
value: "1000"
|
|
||||||
- name: PGID
|
|
||||||
value: "1000"
|
|
||||||
- name: WHITELIST
|
|
||||||
value: ""
|
|
||||||
- name: HOST_WHITELIST
|
|
||||||
value: ""
|
|
||||||
image: linuxserver/transmission:arm32v6-latest
|
|
||||||
name: transmission
|
|
||||||
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
|
|
||||||
initContainers:
|
|
||||||
- command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- chown -R 1000:1000 /config
|
|
||||||
image: busybox
|
|
||||||
name: chown
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /config
|
|
||||||
name: htpc-home
|
|
||||||
subPath: transmission
|
|
||||||
- mountPath: /downloads
|
|
||||||
name: htpc-home
|
|
||||||
subPath: downloads
|
|
||||||
- mountPath: /watch
|
|
||||||
name: htpc-home
|
|
||||||
subPath: watch
|
|
||||||
securityContext:
|
|
||||||
fsGroup: 1000
|
|
||||||
volumes:
|
|
||||||
- hostPath:
|
|
||||||
path: /opt/htpc
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
name: htpc-home
|
|
||||||
---
|
|
||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
name: htpc
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
rules:
|
|
||||||
- http:
|
|
||||||
paths:
|
|
||||||
- backend:
|
|
||||||
service:
|
|
||||||
name: emby
|
|
||||||
port:
|
|
||||||
number: 8096
|
|
||||||
path: /
|
|
||||||
pathType: Exact
|
|
||||||
- backend:
|
|
||||||
service:
|
|
||||||
name: jackett
|
|
||||||
port:
|
|
||||||
number: 9117
|
|
||||||
path: /jackett
|
|
||||||
pathType: Exact
|
|
||||||
- backend:
|
|
||||||
service:
|
|
||||||
name: sonarr
|
|
||||||
port:
|
|
||||||
number: 8989
|
|
||||||
path: /sonarr
|
|
||||||
pathType: Exact
|
|
||||||
- backend:
|
|
||||||
service:
|
|
||||||
name: radarr
|
|
||||||
port:
|
|
||||||
number: 7878
|
|
||||||
path: /radarr
|
|
||||||
pathType: Exact
|
|
||||||
- backend:
|
|
||||||
service:
|
|
||||||
name: bazarr
|
|
||||||
port:
|
|
||||||
number: 6767
|
|
||||||
path: /bazarr
|
|
||||||
pathType: Exact
|
|
||||||
- backend:
|
|
||||||
service:
|
|
||||||
name: transmission
|
|
||||||
port:
|
|
||||||
number: 9091
|
|
||||||
path: /transmission
|
|
||||||
pathType: Exact
|
|
||||||
@@ -1,640 +0,0 @@
|
|||||||
# This is an auto-generated file. DO NOT EDIT
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
name: htpc
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
name: bazarr
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: webui
|
|
||||||
port: 6767
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 6767
|
|
||||||
selector:
|
|
||||||
app: htpc
|
|
||||||
run: bazarr
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
name: emby
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: webui
|
|
||||||
port: 8096
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 8096
|
|
||||||
selector:
|
|
||||||
app: htpc
|
|
||||||
run: emby
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
name: jackett
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: webui
|
|
||||||
port: 9117
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 9117
|
|
||||||
selector:
|
|
||||||
app: htpc
|
|
||||||
run: jackett
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
name: radarr
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: webui
|
|
||||||
port: 7878
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 7878
|
|
||||||
selector:
|
|
||||||
app: htpc
|
|
||||||
run: radarr
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
name: sonarr
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: webui
|
|
||||||
port: 8989
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 8989
|
|
||||||
selector:
|
|
||||||
app: htpc
|
|
||||||
run: sonarr
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
name: transmission
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: webui
|
|
||||||
port: 9091
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 9091
|
|
||||||
selector:
|
|
||||||
app: htpc
|
|
||||||
run: transmission
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: bazarr
|
|
||||||
name: bazarr
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: htpc
|
|
||||||
run: bazarr
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: bazarr
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- env:
|
|
||||||
- name: TZ
|
|
||||||
value: Pacific/Auckland
|
|
||||||
- name: PUID
|
|
||||||
value: "1000"
|
|
||||||
- name: PGID
|
|
||||||
value: "1000"
|
|
||||||
image: linuxserver/bazarr:1.1.0
|
|
||||||
name: bazarr
|
|
||||||
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
|
|
||||||
initContainers:
|
|
||||||
- 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;
|
|
||||||
image: busybox
|
|
||||||
name: wait-for-sonarr-and-radarr
|
|
||||||
- command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- "mkdir -p /htpc/bazarr/config\nexport RADARR_API_KEY=$(cat /htpc/radarr/config.xml
|
|
||||||
| sed -ne \"/ApiKey/{s/.*<ApiKey>\\(.*\\)<\\/ApiKey>.*/\\1/p;q;}\")\nexport
|
|
||||||
SONARR_API_KEY=$(cat /htpc/sonarr/config.xml | sed -ne \"/ApiKey/{s/.*<ApiKey>\\(.*\\)<\\/ApiKey>.*/\\1/p;q;}\")\ncat
|
|
||||||
<< EOF > /htpc/bazarr/config/config.ini\n[sonarr]\napikey = ${SONARR_API_KEY}\nfull_update
|
|
||||||
= Daily\nip = sonarr\nonly_monitored = False\nbase_url = /sonarr\nssl =
|
|
||||||
False\nport = 8989\n\n[radarr]\napikey = ${RADARR_API_KEY}\nfull_update
|
|
||||||
= Daily\nip = radarr\nonly_monitored = False\nbase_url = /radarr\nssl =
|
|
||||||
False\nport = 7878\n\n[general]\nmovie_default_hi = False\nmovie_default_language
|
|
||||||
= []\nip = 0.0.0.0\nuse_scenename = True\nuse_postprocessing = False\nenabled_providers
|
|
||||||
= subscene,tvsubtitles\nauto_update = True\nport = 6767\nuse_radarr = True\nbase_url
|
|
||||||
= /bazarr/\npage_size = 25\nminimum_score_movie = 70\nbranch = master\nsingle_language
|
|
||||||
= False\nuse_sonarr = True\nserie_default_hi = False\npath_mappings_movie
|
|
||||||
= [['/movies', '/movies'], ['', ''], ['', ''], ['', ''], ['', '']]\nserie_default_enabled
|
|
||||||
= False\nmovie_default_enabled = False\nserie_default_language = []\npath_mappings
|
|
||||||
= [['/tv', '/tv'], ['', ''], ['', ''], ['', ''], ['', '']]\npostprocessing_cmd
|
|
||||||
= \nminimum_score = 90\ndebug = False\nuse_embedded_subs = True\nadaptive_searching
|
|
||||||
= False\nEOF\n"
|
|
||||||
image: busybox
|
|
||||||
name: config
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /htpc
|
|
||||||
name: htpc-home
|
|
||||||
securityContext:
|
|
||||||
fsGroup: 1000
|
|
||||||
volumes:
|
|
||||||
- hostPath:
|
|
||||||
path: /opt/htpc
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
name: htpc-home
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: emby
|
|
||||||
name: emby
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: htpc
|
|
||||||
run: emby
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: emby
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- env:
|
|
||||||
- name: TZ
|
|
||||||
value: Pacific/Auckland
|
|
||||||
- name: UID
|
|
||||||
value: "1000"
|
|
||||||
- name: GID
|
|
||||||
value: "1000"
|
|
||||||
image: emby/embyserver:4.8.0.5
|
|
||||||
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
|
|
||||||
securityContext:
|
|
||||||
fsGroup: 1000
|
|
||||||
volumes:
|
|
||||||
- hostPath:
|
|
||||||
path: /opt/htpc
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
name: htpc-home
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: jackett
|
|
||||||
name: jackett
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: htpc
|
|
||||||
run: jackett
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: jackett
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- env:
|
|
||||||
- name: TZ
|
|
||||||
value: Pacific/Auckland
|
|
||||||
- name: PUID
|
|
||||||
value: "1000"
|
|
||||||
- name: PGID
|
|
||||||
value: "1000"
|
|
||||||
image: linuxserver/jackett:0.20.1307
|
|
||||||
name: jackett
|
|
||||||
ports:
|
|
||||||
- containerPort: 9117
|
|
||||||
name: webui
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /config
|
|
||||||
name: htpc-home
|
|
||||||
subPath: jackett
|
|
||||||
- mountPath: /downloads
|
|
||||||
name: htpc-home
|
|
||||||
subPath: downloads
|
|
||||||
initContainers:
|
|
||||||
- args:
|
|
||||||
- 'echo start; [[ ! -f /config/Jackett/ServerConfig.json ]] && mkdir -p /config/Jackett/
|
|
||||||
&& echo ''{ "BasePathOverride": "/jackett"}'' > /config/Jackett/ServerConfig.json;
|
|
||||||
echo end;'
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
image: busybox
|
|
||||||
name: config
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /config
|
|
||||||
name: htpc-home
|
|
||||||
subPath: jackett
|
|
||||||
securityContext:
|
|
||||||
fsGroup: 1000
|
|
||||||
volumes:
|
|
||||||
- hostPath:
|
|
||||||
path: /opt/htpc
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
name: htpc-home
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: radarr
|
|
||||||
name: radarr
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: htpc
|
|
||||||
run: radarr
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: radarr
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- env:
|
|
||||||
- name: TZ
|
|
||||||
value: Pacific/Auckland
|
|
||||||
- name: PUID
|
|
||||||
value: "1000"
|
|
||||||
- name: PGID
|
|
||||||
value: "1000"
|
|
||||||
image: linuxserver/radarr:4.1.0
|
|
||||||
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
|
|
||||||
name: radarr
|
|
||||||
ports:
|
|
||||||
- containerPort: 7878
|
|
||||||
name: webui
|
|
||||||
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
|
|
||||||
initContainers:
|
|
||||||
- command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- chown -R 1000:1000 /config && chown -R 1000:1000 /movies
|
|
||||||
image: busybox
|
|
||||||
name: chown
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /config
|
|
||||||
name: htpc-home
|
|
||||||
subPath: radarr
|
|
||||||
- mountPath: /movies
|
|
||||||
name: htpc-home
|
|
||||||
subPath: media/movies
|
|
||||||
- args:
|
|
||||||
- echo start;[[ ! -f /config/config.xml ]] && echo '<Config><UrlBase>/radarr</UrlBase></Config>'>
|
|
||||||
/config/config.xml;echo end;
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
image: busybox
|
|
||||||
name: config
|
|
||||||
securityContext:
|
|
||||||
runAsGroup: 1000
|
|
||||||
runAsUser: 1000
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /config
|
|
||||||
name: htpc-home
|
|
||||||
subPath: radarr
|
|
||||||
securityContext:
|
|
||||||
fsGroup: 1000
|
|
||||||
volumes:
|
|
||||||
- hostPath:
|
|
||||||
path: /opt/htpc
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
name: htpc-home
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: sonarr
|
|
||||||
name: sonarr
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: htpc
|
|
||||||
run: sonarr
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: sonarr
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- env:
|
|
||||||
- name: TZ
|
|
||||||
value: Pacific/Auckland
|
|
||||||
- name: PUID
|
|
||||||
value: "1000"
|
|
||||||
- name: PGID
|
|
||||||
value: "1000"
|
|
||||||
image: linuxserver/sonarr:3.0.8.1507-ls149
|
|
||||||
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
|
|
||||||
name: sonarr
|
|
||||||
ports:
|
|
||||||
- containerPort: 8989
|
|
||||||
name: webui
|
|
||||||
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
|
|
||||||
initContainers:
|
|
||||||
- command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- chown -R 1000:1000 /config && chown -R 1000:1000 /tv
|
|
||||||
image: busybox
|
|
||||||
name: chown
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /config
|
|
||||||
name: htpc-home
|
|
||||||
subPath: sonarr
|
|
||||||
- mountPath: /tv
|
|
||||||
name: htpc-home
|
|
||||||
subPath: media/tv
|
|
||||||
- args:
|
|
||||||
- echo start;[[ ! -f /config/config.xml ]] && echo '<Config><UrlBase>/sonarr</UrlBase></Config>'>
|
|
||||||
/config/config.xml;echo end;
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
image: busybox
|
|
||||||
name: config
|
|
||||||
securityContext:
|
|
||||||
runAsGroup: 1000
|
|
||||||
runAsUser: 1000
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /config
|
|
||||||
name: htpc-home
|
|
||||||
subPath: sonarr
|
|
||||||
securityContext:
|
|
||||||
fsGroup: 1000
|
|
||||||
volumes:
|
|
||||||
- hostPath:
|
|
||||||
path: /opt/htpc
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
name: htpc-home
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: transmission
|
|
||||||
name: transmission
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: htpc
|
|
||||||
run: transmission
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
run: transmission
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- env:
|
|
||||||
- name: TZ
|
|
||||||
value: Pacific/Auckland
|
|
||||||
- name: PUID
|
|
||||||
value: "1000"
|
|
||||||
- name: PGID
|
|
||||||
value: "1000"
|
|
||||||
- name: WHITELIST
|
|
||||||
value: ""
|
|
||||||
- name: HOST_WHITELIST
|
|
||||||
value: ""
|
|
||||||
image: linuxserver/transmission:3.00-r5-ls127
|
|
||||||
name: transmission
|
|
||||||
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
|
|
||||||
initContainers:
|
|
||||||
- command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- chown -R 1000:1000 /config
|
|
||||||
image: busybox
|
|
||||||
name: chown
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /config
|
|
||||||
name: htpc-home
|
|
||||||
subPath: transmission
|
|
||||||
- mountPath: /downloads
|
|
||||||
name: htpc-home
|
|
||||||
subPath: downloads
|
|
||||||
- mountPath: /watch
|
|
||||||
name: htpc-home
|
|
||||||
subPath: watch
|
|
||||||
securityContext:
|
|
||||||
fsGroup: 1000
|
|
||||||
volumes:
|
|
||||||
- hostPath:
|
|
||||||
path: /opt/htpc
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
name: htpc-home
|
|
||||||
---
|
|
||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: htpc
|
|
||||||
name: htpc
|
|
||||||
namespace: htpc
|
|
||||||
spec:
|
|
||||||
rules:
|
|
||||||
- http:
|
|
||||||
paths:
|
|
||||||
- backend:
|
|
||||||
service:
|
|
||||||
name: emby
|
|
||||||
port:
|
|
||||||
number: 8096
|
|
||||||
path: /
|
|
||||||
pathType: Exact
|
|
||||||
- backend:
|
|
||||||
service:
|
|
||||||
name: jackett
|
|
||||||
port:
|
|
||||||
number: 9117
|
|
||||||
path: /jackett
|
|
||||||
pathType: Exact
|
|
||||||
- backend:
|
|
||||||
service:
|
|
||||||
name: sonarr
|
|
||||||
port:
|
|
||||||
number: 8989
|
|
||||||
path: /sonarr
|
|
||||||
pathType: Exact
|
|
||||||
- backend:
|
|
||||||
service:
|
|
||||||
name: radarr
|
|
||||||
port:
|
|
||||||
number: 7878
|
|
||||||
path: /radarr
|
|
||||||
pathType: Exact
|
|
||||||
- backend:
|
|
||||||
service:
|
|
||||||
name: bazarr
|
|
||||||
port:
|
|
||||||
number: 6767
|
|
||||||
path: /bazarr
|
|
||||||
pathType: Exact
|
|
||||||
- backend:
|
|
||||||
service:
|
|
||||||
name: transmission
|
|
||||||
port:
|
|
||||||
number: 9091
|
|
||||||
path: /transmission
|
|
||||||
pathType: Exact
|
|
||||||
@@ -15,8 +15,8 @@ images:
|
|||||||
newTag: arm32v7-latest
|
newTag: arm32v7-latest
|
||||||
- name: linuxserver/transmission
|
- name: linuxserver/transmission
|
||||||
newTag: arm32v7-latest
|
newTag: arm32v7-latest
|
||||||
- name: emby/embyserver
|
- name: linuxserver/plex
|
||||||
newName: emby/embyserver_arm32v7
|
newTag: arm32v7-latest
|
||||||
newTag: latest
|
newTag: latest
|
||||||
- name: linuxserver/prowlarr
|
- name: linuxserver/prowlarr
|
||||||
newTag: arm32v7-nightly
|
newTag: arm32v7-nightly
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
|
|
||||||
bases:
|
|
||||||
- ../../base
|
|
||||||
|
|
||||||
images:
|
|
||||||
- name: linuxserver/jackett
|
|
||||||
newTag: "0.20.1307"
|
|
||||||
- name: linuxserver/sonarr
|
|
||||||
newTag: 3.0.8.1507-ls149
|
|
||||||
- name: linuxserver/radarr
|
|
||||||
newTag: "4.1.0"
|
|
||||||
- name: linuxserver/bazarr
|
|
||||||
newTag: "1.1.0"
|
|
||||||
- name: linuxserver/transmission
|
|
||||||
newTag: 3.00-r5-ls127
|
|
||||||
- name: emby/embyserver
|
|
||||||
newTag: "4.8.0.5"
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
|
|
||||||
bases:
|
|
||||||
- ../../argocd
|
|
||||||
- ../x86
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
#!/bin/sh -x
|
|
||||||
|
|
||||||
SRCROOT="$( CDPATH='' cd -- "$(dirname "$0")" && pwd -P )"
|
|
||||||
AUTOGENMSG="# This is an auto-generated file. DO NOT EDIT"
|
|
||||||
|
|
||||||
echo "${AUTOGENMSG}" > "${SRCROOT}/install_x86_64.yaml"
|
|
||||||
kustomize build "${SRCROOT}/overlays/x86" >> "${SRCROOT}/install_x86_64.yaml"
|
|
||||||
|
|
||||||
echo "${AUTOGENMSG}" > "${SRCROOT}/install_armhf.yaml"
|
|
||||||
kustomize build "${SRCROOT}/overlays/armhf" >> "${SRCROOT}/install_armhf.yaml"
|
|
||||||
|
|
||||||
echo "${AUTOGENMSG}" > "${SRCROOT}/install_argocd.yaml"
|
|
||||||
kustomize build "${SRCROOT}/argocd" >> "${SRCROOT}/install_argocd.yaml"
|
|
||||||
Reference in New Issue
Block a user