mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2025-12-16 11:27:10 +00:00
66 lines
1.6 KiB
YAML
66 lines
1.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: qbittorrentvpn
|
|
namespace: stack-arr
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: qbittorrentvpn
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: qbittorrentvpn
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: regcred
|
|
containers:
|
|
- name: qbittorrentvpn
|
|
image: j4ym0/pia-qbittorrent:5.1.2-ubuntu
|
|
securityContext:
|
|
capabilities:
|
|
add:
|
|
- NET_ADMIN
|
|
ports:
|
|
- containerPort: 8080
|
|
name: webui
|
|
- containerPort: 51413
|
|
name: torrent-tcp
|
|
- containerPort: 51413
|
|
name: torrent-udp
|
|
protocol: UDP
|
|
env:
|
|
- name: USER
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: vpn-secret
|
|
key: username
|
|
- name: PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: vpn-secret
|
|
key: password
|
|
- name: REGION
|
|
value: "us_new_york" # ou outro servidor PIA
|
|
- name: WEBUI_PORT
|
|
value: "8080"
|
|
- name: DNS_SERVERS
|
|
value: "1.1.1.1,1.0.0.1"
|
|
- name: UID
|
|
value: "1013"
|
|
- name: GID
|
|
value: "1013"
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /config
|
|
- name: downloads
|
|
mountPath: /downloads
|
|
volumes:
|
|
- name: config
|
|
persistentVolumeClaim:
|
|
claimName: qbittorrent-config-pvc
|
|
- name: downloads
|
|
persistentVolumeClaim:
|
|
claimName: qbittorrent-downloads-pvc
|