feat(qbit): Deploying qBittorrent with Helm chart

This commit is contained in:
Vegard Hagen
2023-04-11 21:11:00 +02:00
parent 44456d4465
commit 748092d151
7 changed files with 71 additions and 1 deletions

View File

@@ -6,4 +6,5 @@ metadata:
data:
PUID: "1000"
PGID: "1000"
UMASK: "002"
TZ: "Europe/Oslo"

View File

@@ -10,6 +10,11 @@ env:
configMapKeyRef:
name: common-env
key: PGID
- name: UMASK
valueFrom:
configMapKeyRef:
name: common-env
key: UMASK
- name: TZ
valueFrom:
configMapKeyRef:

View File

@@ -8,7 +8,7 @@ resources:
- cm-common-env.yaml
- ingress.yaml
- auth.yaml
- torrent
- torrent.yaml
- prowlarr.yaml
- sonarr.yaml
- radarr.yaml

44
apps/arr/torrent.yaml Normal file
View File

@@ -0,0 +1,44 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: torrent
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: applications
source:
repoURL: https://github.com/vehagn/homelab
path: charts/application
targetRevision: HEAD
helm:
values: |-
name: torrent
image:
name: cr.hotio.dev/hotio/qbittorrent
tag: legacy
hostVolumes:
- name: torrent-config
hostPath: /disk/etc/qbittorrent
mountPath: /config
service:
type: LoadBalancer
containerPort: 8080
additionalPorts:
- name: tcp
protocol: TCP
containerPort: 11011
- name: udp
protocol: UDP
containerPort: 11011
valueFiles:
- ../../apps/arr/common-values.yaml
destination:
namespace: arr
name: in-cluster
syncPolicy:
automated:
selfHeal: true
prune: true
syncOptions:
- CreateNamespace=true

View File

@@ -43,10 +43,18 @@ spec:
{{- end }}
env:
{{- toYaml .Values.env | nindent 12 }}
{{- with .Values.additionalEnv }}
{{ . | nindent 12 }}
{{- end }}
ports:
- name: http
containerPort: {{ .Values.service.containerPort }}
protocol: TCP
{{- range .Values.service.additionalPorts }}
- name: {{ .name }}
containerPort: {{ .containerPort }}
protocol: {{ .protocol | default "TCP" }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- end }}

View File

@@ -15,6 +15,12 @@ spec:
port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
{{- range .Values.service.additionalPorts }}
- name: {{ .name }}
port: {{ .port | default .containerPort }}
targetPort: {{ .name }}
protocol: {{ .protocol | default "TCP" }}
{{- end }}
selector:
app: {{ .Values.name }}
{{- end }}

View File

@@ -16,11 +16,17 @@ service:
type: ClusterIP
port: 80
containerPort: 8080
additionalPorts: []
# - name: ""
# protocol: TCP
# containerPort: ""
# port: ""
ingressRoute:
create: true
env: []
additionalEnv: []
hostVolumes: []
#- name: volume-name