From 17d3d5a3484cde4108d832ffeb22572400cb0b9d Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Tue, 11 Jun 2024 16:24:14 -0400 Subject: [PATCH] fix(qbittorrent): add liveness probe to gluetun sidecar instead of qbit --- .../download/qbittorrent/helm-release.yaml | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/cluster/apps/download/qbittorrent/helm-release.yaml b/cluster/apps/download/qbittorrent/helm-release.yaml index 03405b3..e72c9f0 100644 --- a/cluster/apps/download/qbittorrent/helm-release.yaml +++ b/cluster/apps/download/qbittorrent/helm-release.yaml @@ -31,7 +31,7 @@ spec: tag: 4.5.2 env: - QBITTORRENT__PORT: &qbitPort 8080 + QBITTORRENT__PORT: 8080 securityContext: runAsGroup: 10000 @@ -39,21 +39,6 @@ spec: fsGroup: 10000 fsGroupChangePolicy: "OnRootMismatch" - probes: - liveness: - enabled: true - custom: true - type: TCP - - spec: - httpGet: - path: / - port: *qbitPort - initialDelaySeconds: 30 - periodSeconds: 60 - failureThreshold: 3 - timeoutSeconds: 10 - gluetun: image: repository: qmcgaw/gluetun @@ -74,6 +59,23 @@ spec: add: - NET_ADMIN + probes: + liveness: + enabled: true + custom: true + + spec: + exec: + command: + - /bin/sh + - -c + # if the vpn is connected, it should have internet + - ping -c 1 google.com + initialDelaySeconds: 30 + periodSeconds: 60 + failureThreshold: 3 + timeoutSeconds: 10 + port-manager: image: repository: git.seanomik.net/seanomik/gluetun-qbit-port-updater