homelab/charts/media/templates/qbittorrent.yaml
Alvin Wang e07a5e1dfa Initial commit: k3s homelab infrastructure
Helm charts for media stack (Plex, Sonarr, Radarr, etc.), dashboards
(Glance, Homepage), paperless-ngx, mealie, traefik ingress, MetalLB,
and utilities. Includes SOPS-encrypted secrets and bootstrap script.
2026-04-19 19:22:22 -04:00

83 lines
1.9 KiB
YAML

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: qbittorrent-config
labels:
app: qbittorrent
{{- include "media.labels" . | nindent 4 }}
spec:
accessModes: [ReadWriteOnce]
storageClassName: {{ .Values.storageClass }}
resources:
requests:
storage: {{ .Values.qbittorrent.configSize }}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: qbittorrent
labels:
app: qbittorrent
{{- include "media.labels" . | nindent 4 }}
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: qbittorrent
template:
metadata:
labels:
app: qbittorrent
spec:
containers:
- name: qbittorrent
image: {{ .Values.qbittorrent.image }}
ports:
- containerPort: {{ .Values.qbittorrent.webuiPort }}
protocol: TCP
- containerPort: 34034
protocol: TCP
- containerPort: 34034
protocol: UDP
env:
{{- include "media.commonEnv" . | nindent 12 }}
- name: WEBUI_PORTS
value: "{{ .Values.qbittorrent.webuiPort }}/tcp"
volumeMounts:
- name: config
mountPath: /config
- name: data
mountPath: /data
volumes:
- name: config
persistentVolumeClaim:
claimName: qbittorrent-config
- name: data
hostPath:
path: {{ .Values.dogstore }}/sonarr/data
type: DirectoryOrCreate
---
apiVersion: v1
kind: Service
metadata:
name: qbittorrent
labels:
app: qbittorrent
spec:
selector:
app: qbittorrent
ports:
- name: webui
port: {{ .Values.qbittorrent.webuiPort }}
targetPort: {{ .Values.qbittorrent.webuiPort }}
- name: bt-tcp
port: 34034
targetPort: 34034
protocol: TCP
- name: bt-udp
port: 34034
targetPort: 34034
protocol: UDP