From db071835fec7932b1ca40ed7df4d8c966412541b Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Thu, 7 Aug 2025 22:20:11 -0400 Subject: [PATCH] Thu 07 Aug 2025 10:20:11 PM EDT --- charts/{transmission => torrents}/Chart.yaml | 0 .../templates/_helpers/envs.tpl | 0 .../templates/deploy.yaml | 51 +++++++++++++++++++ charts/{transmission => torrents}/values.yaml | 8 ++- 4 files changed, 54 insertions(+), 5 deletions(-) rename charts/{transmission => torrents}/Chart.yaml (100%) rename charts/{transmission => torrents}/templates/_helpers/envs.tpl (100%) rename charts/{transmission => torrents}/templates/deploy.yaml (74%) rename charts/{transmission => torrents}/values.yaml (95%) diff --git a/charts/transmission/Chart.yaml b/charts/torrents/Chart.yaml similarity index 100% rename from charts/transmission/Chart.yaml rename to charts/torrents/Chart.yaml diff --git a/charts/transmission/templates/_helpers/envs.tpl b/charts/torrents/templates/_helpers/envs.tpl similarity index 100% rename from charts/transmission/templates/_helpers/envs.tpl rename to charts/torrents/templates/_helpers/envs.tpl diff --git a/charts/transmission/templates/deploy.yaml b/charts/torrents/templates/deploy.yaml similarity index 74% rename from charts/transmission/templates/deploy.yaml rename to charts/torrents/templates/deploy.yaml index 499ce1b..fab7458 100644 --- a/charts/transmission/templates/deploy.yaml +++ b/charts/torrents/templates/deploy.yaml @@ -36,6 +36,26 @@ spec: {{ $.Values.transmission.resources | toYaml | nindent 25 }} volumeMounts: {{ $.Values.transmission.volumeMounts | toYaml | nindent 25 }} + livenessProbe: + exec: + command: + - sh + - -c + - "ping -c 1 www.google.com || exit 1" + initialDelaySeconds: 20 + periodSeconds: 60 + failureThreshold: 3 + timeoutSeconds: 10 + readinessProbe: + exec: + command: + - sh + - -c + - "ping -c 1 www.google.com || exit 1" + initialDelaySeconds: 20 + periodSeconds: 60 + failureThreshold: 3 + timeoutSeconds: 10 {{ end }} {{ if $.Values.qbittorrent.enabled }} - name: qbittorrent @@ -51,6 +71,27 @@ spec: {{ $.Values.qbittorrent.resources | toYaml | nindent 25 }} volumeMounts: {{ $.Values.qbittorrent.volumeMounts | toYaml | nindent 25 }} + livenessProbe: + exec: + command: + - sh + - -c + - "ping -c 1 www.google.com || exit 1" + initialDelaySeconds: 20 + periodSeconds: 60 + failureThreshold: 3 + timeoutSeconds: 10 + readinessProbe: + exec: + command: + - sh + - -c + - "ping -c 1 www.google.com || exit 1" + initialDelaySeconds: 20 + periodSeconds: 60 + failureThreshold: 3 + timeoutSeconds: 10 + {{ end }} initContainers: - name: vpn @@ -96,6 +137,16 @@ spec: capabilities: add: - NET_ADMIN + readinessProbe: + exec: + command: + - sh + - -c + - "ping -c 1 www.google.com || exit 1" + initialDelaySeconds: 20 + periodSeconds: 60 + failureThreshold: 3 + timeoutSeconds: 10 - name: ping image: {{ $.Values.busybox.image }} imagePullPolicy: IfNotPresent diff --git a/charts/transmission/values.yaml b/charts/torrents/values.yaml similarity index 95% rename from charts/transmission/values.yaml rename to charts/torrents/values.yaml index 8f40d3e..cd28327 100644 --- a/charts/transmission/values.yaml +++ b/charts/torrents/values.yaml @@ -1,10 +1,9 @@ - volumes: [] transmission: enabled: true image: linuxserver/transmission - env: + env: PUID: "1000" PGID: "100" TZ: Etc/UTC @@ -17,7 +16,7 @@ qbittorrent: ports: webui: 3000 torrenting: 6881 - env: + env: PUID: "1000" PGID: "100" TZ: Etc/UTC @@ -25,7 +24,7 @@ qbittorrent: gluetun: image: qmcgaw/gluetun:v3 resources: {} - env: + env: HEALTH_VPN_DURATION_INITIAL: 120s BLOCK_MALICIOUS: "off" DNS_KEEP_NAMESERVER: "on" @@ -35,4 +34,3 @@ gluetun: busybox: image: busybox resources: {} -