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: data:
PUID: "1000" PUID: "1000"
PGID: "1000" PGID: "1000"
UMASK: "002"
TZ: "Europe/Oslo" TZ: "Europe/Oslo"

View File

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

View File

@@ -8,7 +8,7 @@ resources:
- cm-common-env.yaml - cm-common-env.yaml
- ingress.yaml - ingress.yaml
- auth.yaml - auth.yaml
- torrent - torrent.yaml
- prowlarr.yaml - prowlarr.yaml
- sonarr.yaml - sonarr.yaml
- radarr.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 }} {{- end }}
env: env:
{{- toYaml .Values.env | nindent 12 }} {{- toYaml .Values.env | nindent 12 }}
{{- with .Values.additionalEnv }}
{{ . | nindent 12 }}
{{- end }}
ports: ports:
- name: http - name: http
containerPort: {{ .Values.service.containerPort }} containerPort: {{ .Values.service.containerPort }}
protocol: TCP protocol: TCP
{{- range .Values.service.additionalPorts }}
- name: {{ .name }}
containerPort: {{ .containerPort }}
protocol: {{ .protocol | default "TCP" }}
{{- end }}
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
{{- end }} {{- end }}

View File

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

View File

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