I know of a similar setup. Arr stack with qBittorrent and VPN on kubernetes. A bit different than yours in that the arr+qBit+VPN run in the same namespace. Here’s how:
--- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: qbittorrent-ingress namespace: arr spec: ingressClassName: nginx rules: - host: your.ho.st http: paths: - path: / pathType: Prefix backend: service: name: qbittorrent port: number: 8080 --- kind: Service apiVersion: v1 metadata: name: qbittorrent namespace: arr spec: selector: app: qbittorrent ports: - protocol: TCP port: 8080 targetPort: 8080 --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: qbittorrent namespace: arr spec: storageClassName: zfs accessModes: - ReadWriteMany resources: requests: storage: 1Ti --- apiVersion: apps/v1 kind: Deployment metadata: namespace: arr name: qbittorrent spec: replicas: 1 selector: matchLabels: app: qbittorrent strategy: type: Recreate template: metadata: labels: app: qbittorrent spec: containers: - name: qbittorrent image: linuxserver/qbittorrent imagePullPolicy: Always volumeMounts: - mountPath: "/config" name: "volume" - mountPath: "/media" name: "media" env: - name: PUID value: "1000" - name: PGID value: "1000" - name: TZ value: "Etc/UTC" ports: - containerPort: 8080 - name: gluetun image: qmcgaw/gluetun imagePullPolicy: Always securityContext: capabilities: add: ["NET_ADMIN"] volumeMounts: - mountPath: /dev/net/tun name: tun env: - name: VPN_SERVICE_PROVIDER value: "mullvad" - name: VPN_TYPE value: "wireguard" - name: WIREGUARD_PRIVATE_KEY value: "removed" - name: WIREGUARD_ADDRESSES value: "removed" - name: SERVER_CITIES value: "removed" - name: FIREWALL_INPUT_PORTS value: "8080" - name: TZ value: "Etc/UTC" restartPolicy: Always volumes: - name: volume persistentVolumeClaim: claimName: qbittorrent - name: media nfs: server: nfs.server.local path: /media - name: tun hostPath: path: /dev/net/tun
The relevant bit of the qBittorrent.conf:
[BitTorrent] Session\Interface=tun0 Session\InterfaceName=tun0
Best of luck!
DigitalOcean is solid and cheap.
I know of a similar setup. Arr stack with qBittorrent and VPN on kubernetes. A bit different than yours in that the arr+qBit+VPN run in the same namespace. Here’s how:
The relevant bit of the qBittorrent.conf:
Best of luck!