Added qbt to nas
All checks were successful
Check with kubeconform / lint (push) Successful in 8s

This commit is contained in:
A B
2025-04-27 11:45:22 +00:00
parent 0b46c48b08
commit a8f96aa60d
3 changed files with 89 additions and 0 deletions

View File

@ -0,0 +1,21 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: qbittorent-nas
namespace: argocd
spec:
project: apps
destination:
namespace: qbittorent-nas
server: https://kubernetes.default.svc
source:
repoURL: ssh://git@gt.hexor.cy:30022/ab/homelab.git
targetRevision: HEAD
path: k8s/apps/qbittorent-nas
syncPolicy:
automated:
selfHeal: true
prune: true
syncOptions:
- CreateNamespace=true

View File

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- app.yaml
- qbittorent.yaml

View File

@ -0,0 +1,62 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: qbittorent-nas
labels:
app: qbittorent-nas
annotations:
reloader.stakater.com/auto: "true"
spec:
selector:
matchLabels:
app: qbittorent-nas
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
template:
metadata:
labels:
app: qbittorent-nas
spec:
nodeSelector:
kubernetes.io/hostname: nas.homenet
volumes:
- name: config
hostPath:
path: /mnt/storage/Storage/configs/qbittorrent
type: DirectoryOrCreate
- name: media
hostPath:
path: /mnt/storage/Storage/Donwloads
type: DirectoryOrCreate
containers:
- name: qbittorrent
image: 'linuxserver/qbittorrent:latest'
ports:
- name: http
containerPort: 8080
protocol: TCP
volumeMounts:
- name: config
mountPath: /config
- name: media
mountPath: /downloads
---
apiVersion: v1
kind: Service
metadata:
name: qbittorent-nas
spec:
type: NodePort
selector:
app: qbittorent-nas
ports:
- port: 8080
targetPort: 8080
nodePort: 31337
protocol: TCP