fix(qbittorrent): add liveness probe to gluetun sidecar instead of qbit

This commit is contained in:
SeanOMik 2024-06-11 16:24:14 -04:00
parent 068abcb8de
commit 17d3d5a348
1 changed files with 18 additions and 16 deletions

View File

@ -31,7 +31,7 @@ spec:
tag: 4.5.2 tag: 4.5.2
env: env:
QBITTORRENT__PORT: &qbitPort 8080 QBITTORRENT__PORT: 8080
securityContext: securityContext:
runAsGroup: 10000 runAsGroup: 10000
@ -39,21 +39,6 @@ spec:
fsGroup: 10000 fsGroup: 10000
fsGroupChangePolicy: "OnRootMismatch" fsGroupChangePolicy: "OnRootMismatch"
probes:
liveness:
enabled: true
custom: true
type: TCP
spec:
httpGet:
path: /
port: *qbitPort
initialDelaySeconds: 30
periodSeconds: 60
failureThreshold: 3
timeoutSeconds: 10
gluetun: gluetun:
image: image:
repository: qmcgaw/gluetun repository: qmcgaw/gluetun
@ -74,6 +59,23 @@ spec:
add: add:
- NET_ADMIN - 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: port-manager:
image: image:
repository: git.seanomik.net/seanomik/gluetun-qbit-port-updater repository: git.seanomik.net/seanomik/gluetun-qbit-port-updater