feat: change qbittorrent chart to kah-common

This commit is contained in:
auricom
2022-07-06 20:13:40 +02:00
parent 19f045105c
commit 4a4f936344

View File

@@ -2,28 +2,38 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1 apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease kind: HelmRelease
metadata: metadata:
name: qbittorrent name: &app qbittorrent
namespace: media namespace: media
spec: spec:
interval: 5m interval: 15m
chart: chart:
spec: spec:
# renovate: registryUrl=https://k8s-at-home.com/charts/ chart: kah-common-chart
chart: qbittorrent version: 1.1.2
version: 13.4.3
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: k8s-at-home-charts name: k8s-at-home-charts
namespace: flux-system namespace: flux-system
interval: 5m interval: 15m
install:
createNamespace: true
remediation:
retries: 5
upgrade:
remediation:
retries: 5
values: values:
global:
nameOverride: *app
image: image:
repository: ghcr.io/k8s-at-home/qbittorrent repository: ghcr.io/k8s-at-home/qbittorrent
tag: v4.4.3.1 tag: v4.4.3.1
pullPolicy: IfNotPresent
env: env:
TZ: "${TIMEZONE}" TZ: "${TIMEZONE}"
QBITTORRENT__PORT: &port 8080
QBITTORRENT__BT_PORT: &port-bt 50413
podSecurityContext: podSecurityContext:
runAsUser: 568 runAsUser: 568
@@ -34,6 +44,7 @@ spec:
config: config:
enabled: true enabled: true
existingClaim: qbittorrent-config existingClaim: qbittorrent-config
mountPath: /config
downloads: downloads:
enabled: true enabled: true
type: nfs type: nfs
@@ -42,18 +53,19 @@ spec:
mountPath: /mnt/storage/downloads mountPath: /mnt/storage/downloads
service: service:
main:
ports:
http:
port: *port
bittorrent: bittorrent:
enabled: true enabled: true
annotations:
prometheus.io/probe: "true"
prometheus.io/protocol: tcp
type: LoadBalancer type: LoadBalancer
externalIPs: externalIPs:
- ${CLUSTER_LB_QBITTORRENT} - "${CLUSTER_LB_QBITTORRENT}"
ports: ports:
bittorrent: bittorrent:
port: 50413 enabled: true
name: bittorrent port: *port-bt
protocol: TCP protocol: TCP
targetPort: 6881 targetPort: 6881
externalTrafficPolicy: Local externalTrafficPolicy: Local
@@ -62,18 +74,22 @@ spec:
main: main:
enabled: true enabled: true
ingressClassName: "nginx" ingressClassName: "nginx"
# annotations: annotations:
# traefik.ingress.kubernetes.io/router.entrypoints: "websecure" nginx.ingress.kubernetes.io/auth-url: "http://authelia.networking.svc.cluster.local/api/verify"
nginx.ingress.kubernetes.io/auth-signin: "https://login.${SECRET_CLUSTER_DOMAIN}"
hosts: hosts:
- host: "qbittorrent.${SECRET_CLUSTER_DOMAIN}" - host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
tls: tls:
- hosts: - hosts:
- "qbittorrent.${SECRET_CLUSTER_DOMAIN}" - *host
resources: resources:
requests: requests:
memory: 4Gi
cpu: 500m cpu: 500m
memory: 4Gi
limits:
memory: 6Gi