Skip to content

Instantly share code, notes, and snippets.

View Marsu31's full-sized avatar

Gabriel Euzet Marsu31

  • Toulouse (France)
View GitHub Profile
@Marsu31
Marsu31 / sync-qbittorrent-gluetun-port-forward.sh
Last active October 5, 2025 10:59 — forked from tyvsmith/sync-qbittorrent-gluetun-port-forward.sh
TrueCharts - Sync QBittorrent Gluetun Port Forwards
#!/bin/bash
# Run on a cron from the host.
NAMESPACE=ix-qbittorrent
CONTAINER_VPN=qbittorrent-vpn
CONTAINER_BITTORRENT=qbittorrent
# Fetch the name of the pod with the label "app.kubernetes.io/instance=qbittorrent"
POD=$(k3s kubectl -n $NAMESPACE get pod -l app.kubernetes.io/instance=qbittorrent -o jsonpath="{.items[0].metadata.name}")