From 179bd14f7f3164ffd7423acb7dc0ab367385d65e Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Tue, 14 Jan 2025 23:51:19 -0600 Subject: [PATCH] change argument --- .../qbittorrent/templates/config-map.yaml | 4 ++-- .../cl01tl/platform/qbittorrent/values.yaml | 20 +------------------ 2 files changed, 3 insertions(+), 21 deletions(-) diff --git a/clusters/cl01tl/platform/qbittorrent/templates/config-map.yaml b/clusters/cl01tl/platform/qbittorrent/templates/config-map.yaml index afa517208..f321e28c4 100644 --- a/clusters/cl01tl/platform/qbittorrent/templates/config-map.yaml +++ b/clusters/cl01tl/platform/qbittorrent/templates/config-map.yaml @@ -17,6 +17,6 @@ data: apk add curl fi - echo "updating port with {{PORTS}}" + echo "updating port with $1" - curl -i -X POST -d "json={\"listen_port\": {{PORTS}}}" "http://localhost:8080/api/v2/app/setPreferences"' + curl -i -X POST -d "json={\"listen_port\": $1}" "http://localhost:8080/api/v2/app/setPreferences"' diff --git a/clusters/cl01tl/platform/qbittorrent/values.yaml b/clusters/cl01tl/platform/qbittorrent/values.yaml index f0d345f77..0afc34619 100644 --- a/clusters/cl01tl/platform/qbittorrent/values.yaml +++ b/clusters/cl01tl/platform/qbittorrent/values.yaml @@ -63,7 +63,7 @@ qbittorrent: - name: VPN_PORT_FORWARDING value: "on" - name: VPN_PORT_FORWARDING_UP_COMMAND - value: '/bin/sh -c /gluetun/update.sh' + value: '/bin/sh -c /gluetun/update.sh {{ printf "{{PORTS}}" }}' - name: PORT_FORWARD_ONLY value: "on" - name: FIREWALL_OUTBOUND_SUBNETS @@ -128,24 +128,6 @@ qbittorrent: targetPort: 9022 protocol: HTTP ingress: - # main: - # className: traefik - # annotations: - # traefik.ingress.kubernetes.io/router.entrypoints: websecure - # traefik.ingress.kubernetes.io/router.tls: "true" - # cert-manager.io/cluster-issuer: letsencrypt-issuer - # hosts: - # - host: qbittorrent.alexlebens.net - # paths: - # - path: / - # pathType: Prefix - # service: - # name: qbittorrent - # port: 8080 - # tls: - # - secretName: qbittorrent-secret-tls - # hosts: - # - qbittorrent.alexlebens.net tailscale: enabled: true className: tailscale