This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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}") |