From df37edbd0d4d647edca2bfbfc56a2ed78eb2fafd Mon Sep 17 00:00:00 2001 From: bvanroll Date: Thu, 16 Jan 2025 22:22:53 +0100 Subject: [PATCH] liveliness probes for a bunch of stuff + tdarr implementation and soulseek (slskd+soularr) integration --- .gitignore | 1 + k8s_manifests/bazarr/deployment.yaml | 14 +++- k8s_manifests/flaresolverr/deployment.yaml | 7 ++ k8s_manifests/ingress.yaml | 31 ++++++++ k8s_manifests/lidarr/deployment.yaml | 14 +++- k8s_manifests/plex/deployment.yaml | 20 +++-- k8s_manifests/plex/service.yaml | 16 +++- k8s_manifests/prowlarr/deployment.yaml | 12 ++- k8s_manifests/pvc/.DS_Store | Bin 0 -> 6148 bytes k8s_manifests/pvc/tdarr.yaml | 9 +++ k8s_manifests/qbittorrent/deployment.yaml | 15 +++- k8s_manifests/radarr/deployment.yaml | 14 +++- k8s_manifests/slskd/deployment.yaml | 41 ++++++++++ k8s_manifests/slskd/service.yaml | 14 ++++ k8s_manifests/sonarr/deployment.yaml | 14 +++- k8s_manifests/soularr/deployment.yaml | 52 ++++++++++++ k8s_manifests/tdarr/deployment.yaml | 87 +++++++++++++++++++++ k8s_manifests/tdarr/service.yaml | 18 +++++ 18 files changed, 352 insertions(+), 27 deletions(-) create mode 100644 k8s_manifests/pvc/.DS_Store create mode 100644 k8s_manifests/pvc/tdarr.yaml create mode 100644 k8s_manifests/slskd/deployment.yaml create mode 100644 k8s_manifests/slskd/service.yaml create mode 100644 k8s_manifests/soularr/deployment.yaml create mode 100644 k8s_manifests/tdarr/deployment.yaml create mode 100644 k8s_manifests/tdarr/service.yaml diff --git a/.gitignore b/.gitignore index 3e58935..71b8d17 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +.secret/* */.secret diff --git a/k8s_manifests/bazarr/deployment.yaml b/k8s_manifests/bazarr/deployment.yaml index 7e3cf00..ad0fc51 100644 --- a/k8s_manifests/bazarr/deployment.yaml +++ b/k8s_manifests/bazarr/deployment.yaml @@ -17,14 +17,22 @@ spec: volumes: - name: nfs-vol nfs: - server: 192.168.0.114 + server: 192.168.0.99 path: /mnt/test1/media/ - name: config - persistentVolumeClaim: - claimName: config-bazarr + nfs: + server: 192.168.0.99 + path: /mnt/test1/media/config/bazarr containers: - name: bazarr image: ghcr.io/hotio/bazarr:latest + livenessProbe: + httpGet: + path: / + port: 6767 + initialDelaySeconds: 60 + failureThreshold: 6 + periodSeconds: 10 env: - name: PUID value: "1000" diff --git a/k8s_manifests/flaresolverr/deployment.yaml b/k8s_manifests/flaresolverr/deployment.yaml index 5a6c6fd..7c90ade 100644 --- a/k8s_manifests/flaresolverr/deployment.yaml +++ b/k8s_manifests/flaresolverr/deployment.yaml @@ -17,6 +17,13 @@ spec: containers: - name: flaresolverr image: ghcr.io/flaresolverr/flaresolverr:latest + livenessProbe: + httpGet: + path: / + port: 8191 + initialDelaySeconds: 60 + failureThreshold: 6 + periodSeconds: 10 env: - name: LOG_LEVEL value: info diff --git a/k8s_manifests/ingress.yaml b/k8s_manifests/ingress.yaml index 62e1646..1d8534b 100644 --- a/k8s_manifests/ingress.yaml +++ b/k8s_manifests/ingress.yaml @@ -1,9 +1,40 @@ +--- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: main-ingress spec: rules: + - host: "truenas.local" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: svc-truenas + port: + number: 443 + - host: "tdarr.local" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: svc-tdarr + port: + number: 80 + - host: "slskd.local" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: svc-slskd + port: + number: 80 - host: "bazarr.local" http: paths: diff --git a/k8s_manifests/lidarr/deployment.yaml b/k8s_manifests/lidarr/deployment.yaml index c0fa7f5..84c9fb7 100644 --- a/k8s_manifests/lidarr/deployment.yaml +++ b/k8s_manifests/lidarr/deployment.yaml @@ -17,13 +17,21 @@ spec: volumes: - name: nfs-vol nfs: - server: 192.168.0.114 + server: 192.168.0.99 path: /mnt/test1/media/ - name: config - persistentVolumeClaim: - claimName: config-lidarr + nfs: + server: 192.168.0.99 + path: /mnt/test1/media/config/lidarr containers: - name: lidarr + livenessProbe: + httpGet: + path: /ping + port: 8686 + initialDelaySeconds: 60 + failureThreshold: 6 + periodSeconds: 10 image: ghcr.io/hotio/lidarr:latest env: - name: PUID diff --git a/k8s_manifests/plex/deployment.yaml b/k8s_manifests/plex/deployment.yaml index 09355fb..627f687 100644 --- a/k8s_manifests/plex/deployment.yaml +++ b/k8s_manifests/plex/deployment.yaml @@ -17,17 +17,23 @@ spec: volumes: - name: nfs-vol nfs: - server: 192.168.0.114 + server: 192.168.0.99 path: /mnt/test1/media/ - - name: transcode - persistentVolumeClaim: - claimName: transcode-plex - name: config - persistentVolumeClaim: - claimName: config-plex + nfs: + path: /mnt/test1/media/config/plex + server: 192.168.0.99 containers: - name: plex image: ghcr.io/hotio/plex:latest + livenessProbe: + httpGet: + path: /identity + port: 32400 + initialDelaySeconds: 60 + failureThreshold: 6 + periodSeconds: 10 + env: - name: PUID value: "1000" @@ -51,8 +57,6 @@ spec: volumeMounts: - name: config mountPath: /config - - name: transcode - mountPath: /transcode - name: nfs-vol mountPath: /media diff --git a/k8s_manifests/plex/service.yaml b/k8s_manifests/plex/service.yaml index 4fb8bdb..1fe22fe 100644 --- a/k8s_manifests/plex/service.yaml +++ b/k8s_manifests/plex/service.yaml @@ -10,5 +10,17 @@ spec: protocol: TCP port: 80 targetPort: 32400 - - +--- +apiVersion: v1 +kind: Service +metadata: + name: svc-plex-lb +spec: + type: NodePort + selector: + app.kubernetes.io/name: plex + ports: + - name: plex + protocol: TCP + port: 32400 + diff --git a/k8s_manifests/prowlarr/deployment.yaml b/k8s_manifests/prowlarr/deployment.yaml index 142af4e..600aded 100644 --- a/k8s_manifests/prowlarr/deployment.yaml +++ b/k8s_manifests/prowlarr/deployment.yaml @@ -16,11 +16,19 @@ spec: spec: volumes: - name: config - persistentVolumeClaim: - claimName: config-prowlarr + nfs: + path: /mnt/test1/media/config/prowlarr + server: 192.168.0.99 containers: - name: prowlarr image: ghcr.io/hotio/prowlarr:latest + livenessProbe: + httpGet: + path: /ping + port: 9696 + initialDelaySeconds: 60 + failureThreshold: 6 + periodSeconds: 3 env: - name: PUID value: "1000" diff --git a/k8s_manifests/pvc/.DS_Store b/k8s_manifests/pvc/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0