qbittorrent

by alekc

Helm chartv2.11.1App release-5.3.1GPL-3.0Verified publisher

BitTorrent client with an optional Gluetun or built-in WireGuard VPN sidecar and a Prometheus metrics exporter

About this chart

qbittorrent

BitTorrent client with an optional Gluetun or built-in WireGuard VPN sidecar and a Prometheus metrics exporter

qBittorrent is an open-source BitTorrent client. This chart wraps the hotio qBittorrent image, and can route its traffic through a Gluetun or built-in WireGuard VPN sidecar, with an optional Prometheus metrics exporter and alert rule.

Quick start

helm repo add alekc https://charts.alekc.dev
helm repo update
helm install my-qbittorrent alekc/qbittorrent \
  --set persistence.enabled=true \
  --set ingress.enabled=true

Or directly from the OCI registry, no helm repo add needed:

helm install my-qbittorrent oci://charts.alekc.dev/qbittorrent --version 2.8.0

Verifying the signature

curl -sO https://charts.alekc.dev/pubring.gpg
helm pull oci://charts.alekc.dev/qbittorrent --version 2.8.0 --verify --keyring pubring.gpg

A minimal working values.yaml:

persistence:
  enabled: true
  size: 5Gi
ingress:
  enabled: true
  hosts:
    - host: qbittorrent.example.com
      paths:
        - path: /
          pathType: ImplementationSpecific

Maintainers

NameEmailUrl
alekc[email protected]

Source Code

Values

KeyTypeDefaultDescription
additionalManifestsobject{}Additional raw Kubernetes manifests to render alongside the chart's own resources. Supports any valid Kubernetes object; values are templated with tpl, so a manifest can reference .Release.Namespace and friends.
affinityobject{}
annotations.deploymentobject{}Deployment's annotations
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
btService.annotationsobject{}Annotations to add to the BitTorrent Service
btService.externalIpslist[]
btService.portint6881
btService.typestring"ClusterIP"
clearStaleLocks.enabledbooltrue
clearStaleLocks.imagestring"busybox:1.38"
clearStaleLocks.imagePullPolicystring"IfNotPresent"
commonAnnotationsobject{}Annotations merged onto every resource this chart renders, in addition to each resource's own dedicated annotations field.
commonLabelsobject{}Labels merged onto every resource this chart renders. Never reaches selector/matchLabels, safe to change without forcing a Deployment recreate.
deployment.revisionHistoryLimitint1Number of replicaset revisions
deployment.strategyobject{"type":"Recreate"}Rollout strategy type
env.PGIDstring"1000"
env.PUIDstring"1000"
env.TZstring"Europe/London"
extraContainerslist[]Extra sidecar containers appended to the pod spec, templated with tpl so they can reference .Release.Namespace and friends.
extraInitContainerslist[]
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"
image.repositorystring"ghcr.io/hotio/qbittorrent"
image.tagstring""
imagePullSecretslist[]
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalse
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]
livenessProbeobject{"enabled":true,"failureThreshold":6,"httpGet":{"path":"/","port":"http"},"initialDelaySeconds":30,"periodSeconds":10}Pod liveness probe. The hotio image runs a full s6-overlay init (PUID/PGID remapping, config bootstrap) before the WebUI binds to :8080, which routinely takes longer than Kubernetes' own probe defaults; initialDelaySeconds/failureThreshold below are set generously for that, not for a typical fast-starting app. Set enabled: false to disable outright rather than overriding the block to {}/null, Helm's deep merge would leave these defaults in place either way.
metrics.enabledboolfalse
metrics.exporter.env.existingSecretobjectunset, password is usedRead the WebUI password from an existing Secret instead of password
metrics.exporter.env.existingSecret.keystring"password"Key in the Secret holding the password
metrics.exporter.env.existingSecret.namestring""Secret name; when set, password is ignored
metrics.exporter.env.logLevelstring"INFO"
metrics.exporter.env.passwordstring"adminadmin"
metrics.exporter.env.portint9022
metrics.exporter.env.userstring"admin"
metrics.exporter.image.pullPolicystring"IfNotPresent"
metrics.exporter.image.repositorystring"esanchezm/prometheus-qbittorrent-exporter"
metrics.exporter.image.tagstring"v1.8.0"
metrics.prometheusRule.annotationsobject{}Annotations to add to the PrometheusRule
metrics.prometheusRule.enabledboolfalse
metrics.prometheusRule.labelsobject{}
metrics.prometheusRule.ruleslist[]
metrics.serviceMonitor.annotationsobject{}Annotations to add to the ServiceMonitor
metrics.serviceMonitor.enabledboolfalse
metrics.serviceMonitor.intervalstring"15s"
metrics.serviceMonitor.labelsobject{}
metrics.serviceMonitor.scrapeTimeoutstring"5s"
nameOverridestring""
networkPolicy.annotationsobject{}Annotations to add to the NetworkPolicy
networkPolicy.enabledboolfalseRender a NetworkPolicy restricting ingress to the WebUI and BitTorrent ports, and egress to DNS plus a broad allowance. qBittorrent connects to arbitrary peers/trackers across the internet, so egress is broad by default, see Gotchas.
networkPolicy.extraEgresslist[]Additional raw egress rules, appended as-is under spec.egress.
networkPolicy.extraIngresslist[]Additional raw ingress rules, appended as-is under spec.ingress.
nodeSelectorobject{}
persistence.accessModestring"ReadWriteOnce"
persistence.additionalMountslist[]
persistence.additionalVolumeslist[]
persistence.annotationsobject{}Annotations to add to the PersistentVolumeClaim
persistence.enabledbooltrue
persistence.existingClaimstring""
persistence.sizestring"800Mi"
persistence.storageClassstring""
podAnnotationsobject{}
podSecurityContextobject{}
readinessProbeobject{"enabled":true,"failureThreshold":6,"httpGet":{"path":"/","port":"http"},"initialDelaySeconds":30,"periodSeconds":10}Pod readiness probe. Same startup-time reasoning as livenessProbe.
replicaCountint1
resourcesobject{}
securityContextobject{}
serviceAccount.annotationsobject{}
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""
tolerationslist[]
vpn.builtIn.additionalPortsstring""
vpn.builtIn.configstring"x"If the config is not empty, it will be copied into /config/wireguard/wg0.conf with an init container config:
vpn.builtIn.interfacestring"wg0"
vpn.builtIn.lanNetworkstring""
vpn.builtIn.privoxy.annotationsobject{}Annotations to add to the privoxy Service
vpn.builtIn.privoxy.enabledboolfalse
vpn.builtIn.privoxy.externalIpslist[]
vpn.builtIn.privoxy.typestring"ClusterIP"
vpn.enabledboolfalse
vpn.gluetun.env.DNS_KEEP_NAMESERVERstring"on"
vpn.gluetun.env.TZstring"Europe/London"
vpn.gluetun.env.VPN_TYPEstring"wireguard"
vpn.gluetun.image.pullPolicystring"IfNotPresent"
vpn.gluetun.image.repositorystring"ghcr.io/qdm12/gluetun"
vpn.gluetun.image.tagstring"v3.41.3"
vpn.gluetun.securityContext.capabilities.add[0]string"NET_ADMIN"
vpn.typestring"builtIn"
webService.annotationsobject{}Annotations to add to the WebUI Service
webService.externalIpslist[]
webService.portint80
webService.typestring"ClusterIP"

Gotchas

  • vpn.enabled is false by default: traffic goes out directly, unproxied. Set vpn.type to gluetun (a full sidecar container, configured entirely through vpn.gluetun.env, see Gluetun's own docs) or builtIn (uses the hotio image's own WireGuard client, configured via vpn.builtIn.config) before routing real traffic through this chart.
  • vpn.gluetun.env values containing secrets (WireGuard keys, VPN provider credentials) render as plain container env vars. Prefer additionalManifests with an ExternalSecret and a valueFrom.secretKeyRef entry (any non-string value under vpn.gluetun.env renders as a valueFrom block) over inlining real key material in values.yaml or helmValues.
  • clearStaleLocks.enabled only takes effect when deployment.strategy.type is Recreate. qBittorrent v4+ leaves an ipc-socket/lockfile on the PVC if a pod dies ungracefully; the next pod treats itself as a duplicate instance and exits 0 in a restart loop with the WebUI never binding. The init container clears both before start, but only under Recreate, since RollingUpdate can briefly run two pods against the same volume and deleting a live instance's lockfile out from under it is unsafe.
  • networkPolicy.enabled allows broad egress to 0.0.0.0/0 by default. qBittorrent connects to arbitrary BitTorrent peers and trackers across the internet, which isn't a small fixed CIDR. Narrow it with networkPolicy.extraEgress only if you're routing all traffic through a VPN sidecar with its own egress control.
  • metrics.exporter.env.password is the qBittorrent WebUI's own admin password, required so the exporter can authenticate and scrape /api/v2 stats; it isn't a separate credential. To keep it out of your values, set metrics.exporter.env.existingSecret.name (and .key, default password) to a Secret you manage; password is then ignored.

Upgrade notes

No breaking changes yet. This section will list migration steps for any future release with a kind: removed or kind: changed entry in artifacthub.io/changes that requires one.

Deploy qbittorrent with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has qbittorrent on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartqbittorrent is pinned at v2.11.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply