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 - name: regcred
containers: containers:
- name: qbittorrentvpn - name: qbittorrentvpn
image: binhex/arch-qbittorrentvpn:5 image: j4ym0/pia-qbittorrent:5.1.2-ubuntu
securityContext: securityContext:
privileged: true # necessário para manipular tun devices capabilities:
add:
- NET_ADMIN
ports: ports:
- containerPort: 8080 # WebUI do qBittorrent - containerPort: 8080
- containerPort: 8118 name: webui
- containerPort: 9118 - containerPort: 51413
- containerPort: 58946 name: torrent-tcp
- containerPort: 51413
name: torrent-udp
protocol: UDP
env: env:
- name: VPN_ENABLED - name: USER
value: "yes"
- name: VPN_PROV
valueFrom:
secretKeyRef:
name: vpn-secrets
key: vpnprov
- name: VPN_USER
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: vpn-secrets name: vpn-secrets
key: username key: username
- name: VPN_PASS - name: PASSWORD
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: vpn-secrets name: vpn-secrets
key: password key: password
- name: VPN_CLIENT - name: REGION
value: "openvpn" value: "us_new_york" # ou outro servidor PIA
- 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: WEBUI_PORT - name: WEBUI_PORT
value: "8080" value: "8080"
- name: UMASK - name: DNS_SERVERS
value: "000" value: "1.1.1.1,1.0.0.1"
- name: PUID - name: UID
value: "1013" value: "1013"
- name: PGID - name: GID
value: "1013" 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: volumeMounts:
- name: config - name: config
mountPath: /config mountPath: /config
- name: downloads - name: downloads
mountPath: /data mountPath: /downloads
volumes: volumes:
- name: config - name: config
persistentVolumeClaim: persistentVolumeClaim:

View File

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

View File

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