Skip to content

Commit

Permalink
feat: qbittorrent
Browse files Browse the repository at this point in the history
  • Loading branch information
luissimas committed May 4, 2024
1 parent ed186cc commit 31bac33
Show file tree
Hide file tree
Showing 7 changed files with 103 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,11 @@ Apps are the user-facing services provided by the cluster.

### Prowlarr

- [ ] Deploy
- [X] Deploy
- [ ] Monitoring

https://github.com/onedr0p/exportarr

### QbitTorrent

- [ ] Deploy
Expand Down
1 change: 1 addition & 0 deletions apps/media/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ resources:
- namespace.yaml
- jellyfin
- prowlarr
- qbittorrent
45 changes: 45 additions & 0 deletions apps/media/qbittorrent/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: qbittorrent
namespace: media
spec:
selector:
matchLabels:
app: qbittorrent
replicas: 1
template:
metadata:
labels:
app: qbittorrent
spec:
containers:
- name: qbittorrent
image: lscr.io/linuxserver/qbittorrent:latest
ports:
- containerPort: 8080
protocol: TCP
- containerPort: 6881
protocol: TCP
- containerPort: 6881
protocol: UDP
volumeMounts:
- name: downloads
mountPath: "/downloads"
- name: config
mountPath: "/config"
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: America/Sao_Paulo
volumes:
- name: downloads
hostPath:
path: /home/padawan/homelab/media-server/media/downloads
type: Directory
- name: config
persistentVolumeClaim:
claimName: qbittorrent-config
21 changes: 21 additions & 0 deletions apps/media/qbittorrent/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: qbittorrent
namespace: media
spec:
tls:
- hosts:
- qbittorrent.totorinho.duckdns.org
secretName: duckdns-wildcard-cert-totorinho.duckdns.org
rules:
- host: qbittorrent.totorinho.duckdns.org
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: qbittorrent
port:
number: 8080
7 changes: 7 additions & 0 deletions apps/media/qbittorrent/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- pvc.yaml
- deployment.yaml
- service.yaml
- ingress.yaml
15 changes: 15 additions & 0 deletions apps/media/qbittorrent/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: qbittorrent-config
namespace: media
labels:
app: qbittorrent
spec:
storageClassName: local-path
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Mi

11 changes: 11 additions & 0 deletions apps/media/qbittorrent/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: qbittorrent
namespace: media
spec:
selector:
app: qbittorrent
ports:
- port: 8080
targetPort: 8080

0 comments on commit 31bac33

Please sign in to comment.