This repository has been archived on 2025-01-11. You can view files and clone it, but cannot push or open issues or pull requests.
theshire/kubernetes/apps/qbittorrent/qbittorrent/app/helmrelease.yaml

168 lines
4.9 KiB
YAML
Raw Normal View History

2024-01-14 16:51:20 -06:00
---
2024-03-19 17:38:08 -05:00
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2
2024-01-14 16:51:20 -06:00
kind: HelmRelease
metadata:
name: &app qbittorrent
2024-01-14 16:51:20 -06:00
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 3.3.2
2024-01-14 16:51:20 -06:00
interval: 30m
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
2024-03-19 17:38:08 -05:00
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
strategy: rollback
2024-01-14 16:51:20 -06:00
values:
controllers:
2024-03-19 17:38:08 -05:00
qbittorrent:
2024-01-14 16:51:20 -06:00
annotations:
configmap.reloader.stakater.com/reload: qbittorrent-scripts
secret.reloader.stakater.com/reload: qbittorrent-secret
pod:
securityContext:
fsGroup: 568
fsGroupChangePolicy: "OnRootMismatch"
containers:
2024-03-19 17:38:08 -05:00
app:
2024-01-14 16:51:20 -06:00
nameOverride: qbittorrent
image:
repository: ghcr.io/onedr0p/qbittorrent
tag: 4.6.6@sha256:e21c95568c9175f40390bacd7f778d8d2af5331d1e663e1a6860140891c65742
2024-01-14 16:51:20 -06:00
env:
UMASK: "022"
2024-08-15 13:32:52 -05:00
QBITTORRENT__PORT: &port 80
2024-01-14 17:44:36 -06:00
QBT_Preferences__WebUI__AlternativeUIEnabled: false
QBT_Preferences__WebUI__AuthSubnetWhitelistEnabled: true
QBT_Preferences__WebUI__AuthSubnetWhitelist: |-
2024-02-21 15:23:28 -06:00
10.244.0.0/16, 10.1.2.0/24
2024-01-14 17:44:36 -06:00
QBT_Preferences__WebUI__LocalHostAuth: false
2024-08-23 08:24:50 -05:00
# QBT_BitTorrent__Session__Interface: wg0
# QBT_BitTorrent__Session__InterfaceName: wg0
2024-01-14 16:51:20 -06:00
resources:
requests:
cpu: 49m
memory: 1024Mi
limits:
2024-05-11 22:11:02 -05:00
memory: 24Gi
2024-01-14 16:51:20 -06:00
securityContext:
runAsUser: 568
runAsGroup: 568
runAsNonRoot: true
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
2024-08-23 08:24:50 -05:00
# gluetun:
# image:
# repository: ghcr.io/qdm12/gluetun
# tag: latest@sha256:fb448a2eb8755b68106a386d1e5a78c781bf28a0eea0fb712824cd2dc0ec19a7
# env:
# VPN_SERVICE_PROVIDER: custom
# VPN_TYPE: wireguard
# VPN_INTERFACE: wg0
# WIREGUARD_ENDPOINT_PORT: 51820
# VPN_PORT_FORWARDING: on
# VPN_PORT_FORWARDING_PROVIDER: protonvpn
# FIREWALL_INPUT_PORTS: *port
# FIREWALL_OUTBOUND_SUBNETS: 10.32.0.0/16 # Allow access to k8s subnets
# envFrom:
# - secretRef:
# name: qbittorrent-secret
# securityContext:
# # until I can debug the issues on talos 1.8.
# privileged: true
# capabilities:
# add:
# - NET_ADMIN
# drop:
# - ALL
2024-01-14 16:51:20 -06:00
2024-08-23 08:24:50 -05:00
# port-forward:
# image:
# repository: ghcr.io/bjw-s/gluetun-qb-port-sync
# tag: v0.0.2
# env:
# GLUETUN_CONTROL_SERVER_HOST: localhost
# GLUETUN_CONTROL_SERVER_PORT: 8000
# QBITTORRENT_HOST: localhost
# QBITTORRENT_WEBUI_PORT: *port
# CRON_ENABLED: true
# CRON_SCHEDULE: "*/5 * * * *"
# LOG_TIMESTAMP: false
# securityContext:
# runAsUser: 568
# runAsGroup: 568
# runAsNonRoot: true
# allowPrivilegeEscalation: false
# readOnlyRootFilesystem: false
# capabilities:
# drop:
# - ALL
2024-01-14 16:51:20 -06:00
service:
2024-03-19 17:38:08 -05:00
app:
controller: *app
nameOverride: *app
2024-01-14 16:51:20 -06:00
ports:
http:
port: *port
2024-01-14 17:41:47 -06:00
bittorrent:
2024-03-19 18:05:58 -05:00
controller: qbittorrent
2024-01-14 17:41:47 -06:00
type: LoadBalancer
annotations:
2024-05-08 15:11:54 -05:00
io.cilium/lb-ipam-ips: 10.1.1.34
2024-01-14 17:41:47 -06:00
ports:
bittorrent:
enabled: true
2024-08-15 13:32:52 -05:00
port: *port
2024-01-14 17:41:47 -06:00
protocol: TCP
2024-01-14 16:51:20 -06:00
ingress:
2024-03-19 17:38:08 -05:00
app:
2024-01-14 16:51:20 -06:00
enabled: true
className: "internal-nginx"
hosts:
- host: "qb.jahanson.tech"
paths:
- path: /
service:
2024-03-19 17:38:08 -05:00
identifier: app
2024-01-14 16:51:20 -06:00
port: http
tls:
- hosts:
- "qb.jahanson.tech"
persistence:
config:
enabled: true
2024-01-17 15:18:22 -06:00
existingClaim: qbittorrent
2024-01-14 16:51:20 -06:00
media:
type: nfs
2024-01-27 09:53:26 -06:00
server: 10.1.1.11
path: /volume1/Media
2024-01-14 16:51:20 -06:00
advancedMounts:
2024-03-19 18:23:02 -05:00
qbittorrent:
app:
2024-01-14 16:51:20 -06:00
- path: /data/nas-media
2024-08-07 10:59:21 -05:00
qbtun:
type: hostPath
hostPath: /dev/net
advancedMounts:
qbittorrent:
gluetun:
- path: /dev/net