Skip to content

Commit b9e167c

Browse files
noldNold360
authored andcommitted
add(qbittorrent)
1 parent 6140602 commit b9e167c

5 files changed

Lines changed: 174 additions & 0 deletions

File tree

charts/qbittorrent/.helmignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*~
18+
# Various IDEs
19+
.project
20+
.idea/
21+
*.tmproj
22+
.vscode/
23+
# OWNERS file for Kubernetes
24+
OWNERS
25+
26+
# helm-docs templates
27+
*.gotmpl
28+
29+
# helm unit tests
30+
tests/

charts/qbittorrent/Chart.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
apiVersion: v2
3+
description: QBittorrent
4+
name: qbittorrent
5+
version: 1.0.0
6+
kubeVersion: ">=1.22.0-0"
7+
sources:
8+
- https://github.com/qbittorrent/qBittorrent
9+
home: https://github.com/lib42/charts
10+
icon: https://avatars.githubusercontent.com/u/2131270
11+
maintainers:
12+
- name: nold
13+
email: nold@gnu.one
14+
dependencies:
15+
- name: common
16+
repository: https://bjw-s.github.io/helm-charts
17+
version: 1.5.1

charts/qbittorrent/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# qBitTorrent
2+
3+
"Minimal Permissions" Helm Chart for qBitTorrent. See `values.yaml` for exampe values.
4+
5+
Based on: [bjw-s common chart](https://github.com/bjw-s/helm-charts/tree/main/charts/library/common)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
{{- include "bjw-s.common.loader.init" . }}
3+
4+
{{- define "qbittorrent.hardcodedValues" -}}
5+
securityContext:
6+
# runAsNonRoot: true
7+
privileged: false
8+
readOnlyRootFilesystem: true
9+
allowPrivilegeEscalation: false
10+
capabilities:
11+
drop:
12+
- ALL
13+
{{- end -}}
14+
{{- $_ := mergeOverwrite .Values (include "qbittorrent.hardcodedValues" . | fromYaml) -}}
15+
16+
17+
{{/* Render the templates */}}
18+
{{ include "bjw-s.common.loader.generate" . }}

charts/qbittorrent/values.yaml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
---
2+
image:
3+
repository: ghcr.io/onedr0p/qbittorrent
4+
tag: 4.5.2
5+
6+
podSecurityContext:
7+
sysctls:
8+
- name: net.ipv6.conf.all.disable_ipv6
9+
value: "1"
10+
# fsGroup: 1000
11+
# fsGroupChangePolicy: "OnRootMismatch"
12+
# supplementalGroups:
13+
# - 100
14+
15+
ingress:
16+
main:
17+
enabled: false
18+
# annotations:
19+
# nginx.ingress.kubernetes.io/proxy-body-size: 50m
20+
# hosts:
21+
# - host: qbittorrent.local
22+
# paths:
23+
# - path: /
24+
# pathType: Prefix
25+
# tls:
26+
# - secretName: qbittorrent-tls
27+
# hosts:
28+
# - qbittorrent.local
29+
30+
service:
31+
main:
32+
enabled: true
33+
ports:
34+
http:
35+
port: 8080
36+
37+
persistence:
38+
config:
39+
enabled: true
40+
mountPath: /config
41+
size: 10M
42+
43+
# # for custom themes:
44+
# theme:
45+
# enabled: false
46+
# mountpath: /theme
47+
# type: emptyDir
48+
49+
# # example used hostpath instead
50+
# downloads:
51+
# enabled: false
52+
# type: hostPath
53+
# hostPath: /data/media/torrent
54+
# mountPath: /downloads
55+
56+
57+
## Install custom Theme
58+
# initContainers:
59+
# init-config:
60+
# image: alpine/git
61+
# args:
62+
# - "clone"
63+
# - "--depth"
64+
# - "1"
65+
# - "https://github.com/dracula/qbittorrent.git"
66+
# - "/theme"
67+
# volumeMounts:
68+
# - name: theme
69+
# mountPath: /theme
70+
# securityContext:
71+
# runAsNonRoot: true
72+
# privileged: false
73+
# readOnlyRootFilesystem: true
74+
# allowPrivilegeEscalation: false
75+
# capabilities:
76+
# drop:
77+
# - ALL
78+
79+
## VPN
80+
addons:
81+
vpn:
82+
enabled: false
83+
84+
#env:
85+
# VPN_SERVICE_PROVIDER: mullvad
86+
# VPN_TYPE: openvpn
87+
88+
# DNS_KEEP_NAMESERVER: "on"
89+
# DOT: "on"
90+
# FIREWALL: "on"
91+
# FIREWALL_INPUT_PORTS: "8112,8000"
92+
# FIREWALL_VPN_INPUT_PORTS: 61086
93+
94+
securityContext:
95+
capabilities:
96+
add:
97+
- NET_ADMIN
98+
99+
livenessProbe:
100+
httpGet:
101+
path: /v1/openvpn/status
102+
port: 8000
103+
initialDelaySeconds: 30
104+
periodSeconds: 30

0 commit comments

Comments
 (0)