new qbittorrent image

This commit is contained in:
Tomás Limpinho
2025-11-11 19:14:35 +00:00
parent 2fdee619ca
commit 8c882adffe
3 changed files with 21 additions and 44 deletions

View File

@ -17,66 +17,45 @@ spec:
- name: regcred
containers:
- name: qbittorrentvpn
image: binhex/arch-qbittorrentvpn:5
image: j4ym0/pia-qbittorrent:5.1.2-ubuntu
securityContext:
privileged: true # necessário para manipular tun devices
capabilities:
add:
- NET_ADMIN
ports:
- containerPort: 8080 # WebUI do qBittorrent
- containerPort: 8118
- containerPort: 9118
- containerPort: 58946
- containerPort: 8080
name: webui
- containerPort: 51413
name: torrent-tcp
- containerPort: 51413
name: torrent-udp
protocol: UDP
env:
- name: VPN_ENABLED
value: "yes"
- name: VPN_PROV
valueFrom:
secretKeyRef:
name: vpn-secrets
key: vpnprov
- name: VPN_USER
- name: USER
valueFrom:
secretKeyRef:
name: vpn-secrets
key: username
- name: VPN_PASS
- name: PASSWORD
valueFrom:
secretKeyRef:
name: vpn-secrets
key: password
- name: VPN_CLIENT
value: "openvpn"
- name: ENABLE_STARTUP_SCRIPTS
value: "no"
- name: ENABLE_PRIVOXY
value: "yes"
- name: STRICT_PORT_FORWARD
value: "yes"
- name: USERSPACE_WIREGUARD
value: "no"
- name: ENABLE_SOCKS
value: "no"
- name: DEBUG
value: "false"
- name: REGION
value: "us_new_york" # ou outro servidor PIA
- name: WEBUI_PORT
value: "8080"
- name: UMASK
value: "000"
- name: PUID
- name: DNS_SERVERS
value: "1.1.1.1,1.0.0.1"
- name: UID
value: "1013"
- name: PGID
- name: GID
value: "1013"
- name: LAN_NETWORK
valueFrom:
secretKeyRef:
name: vpn-secrets
key: lannetwork
- name: NAME_SERVERS
value: "1.1.1.1,8.8.8.8"
volumeMounts:
- name: config
mountPath: /config
- name: downloads
mountPath: /data
mountPath: /downloads
volumes:
- name: config
persistentVolumeClaim:

View File

@ -5,7 +5,5 @@ metadata:
namespace: stack-arr
type: Opaque
data:
lannetwork: MTkyLjE2OC4xLjAvMjQ=
vpnprov: cGlh
username: dXNlcm5hbWU=
password: cGFzc3dvcmQ=

View File

@ -29,7 +29,7 @@
echo "get item"
bw get item "{{ item.id }}" --session $BW_SESSION | jq -r '.notes' > {{ item.dest }}
loop:
- { id: "iac.ansible.dockersecrets", dest: "/tmp/stack-arr/qbittorrent/kubernetes-files/files/docker-secrets.yaml" }
- { id: "iac.ansible.stackarr.qbittorrent.dockersecrets", dest: "/tmp/stack-arr/qbittorrent/kubernetes-files/files/docker-secrets.yaml" }
- { id: "iac.ansible.stackarr.qbittorrent.secret", dest: "/tmp/stack-arr/qbittorrent/kubernetes-files/files/vpn-secret.yaml" }
args:
executable: /bin/bash