mirror of
https://github.com/optim-enterprises-bv/homelab.git
synced 2025-11-02 19:08:03 +00:00
feat(qbit): Deploying qBittorrent with Helm chart
This commit is contained in:
@@ -6,4 +6,5 @@ metadata:
|
||||
data:
|
||||
PUID: "1000"
|
||||
PGID: "1000"
|
||||
UMASK: "002"
|
||||
TZ: "Europe/Oslo"
|
||||
|
||||
@@ -10,6 +10,11 @@ env:
|
||||
configMapKeyRef:
|
||||
name: common-env
|
||||
key: PGID
|
||||
- name: UMASK
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: common-env
|
||||
key: UMASK
|
||||
- name: TZ
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
|
||||
@@ -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
44
apps/arr/torrent.yaml
Normal 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
|
||||
@@ -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 }}
|
||||
@@ -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 }}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user