mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-30 23:45:25 +02:00
new gitops template
This commit is contained in:
79
cluster/apps/media/qbittorrent/helm-release.yaml
Normal file
79
cluster/apps/media/qbittorrent/helm-release.yaml
Normal file
@@ -0,0 +1,79 @@
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: qbittorrent
|
||||
namespace: media
|
||||
spec:
|
||||
interval: 5m
|
||||
chart:
|
||||
spec:
|
||||
# renovate: registryUrl=https://k8s-at-home.com/charts/
|
||||
chart: qbittorrent
|
||||
version: 9.2.0
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: k8s-at-home-charts
|
||||
namespace: flux-system
|
||||
interval: 5m
|
||||
values:
|
||||
controllerType: deployment
|
||||
image:
|
||||
repository: ghcr.io/k8s-at-home/qbittorrent
|
||||
tag: v4.3.4.1
|
||||
pullPolicy: IfNotPresent
|
||||
env:
|
||||
TZ: "Europe/Paris"
|
||||
service:
|
||||
additionalServices:
|
||||
- enabled: true
|
||||
nameSuffix: bittorrent
|
||||
type: LoadBalancer
|
||||
externalIPs:
|
||||
- ${CLUSTER_LB_QBITTORRENT}
|
||||
port:
|
||||
port: 50413
|
||||
name: bittorrent
|
||||
protocol: TCP
|
||||
targetPort: 6881
|
||||
externalTrafficPolicy: Local
|
||||
service:
|
||||
annotations:
|
||||
prometheus.io/probe: "true"
|
||||
prometheus.io/protocol: tcp
|
||||
podSecurityContext:
|
||||
runAsUser: 568
|
||||
runAsGroup: 568
|
||||
fsGroup: 568
|
||||
persistence:
|
||||
config:
|
||||
enabled: true
|
||||
existingClaim: qbittorrent-config
|
||||
additionalVolumeMounts:
|
||||
- name: qbittorrent-cache
|
||||
mountPath: "/downloads"
|
||||
- name: nfs-downloads-media
|
||||
mountPath: "/mnt/storage/downloads"
|
||||
additionalVolumes:
|
||||
- name: qbittorrent-cache
|
||||
persistentVolumeClaim:
|
||||
claimName: qbittorrent-cache
|
||||
- name: nfs-downloads-media
|
||||
persistentVolumeClaim:
|
||||
claimName: nfs-downloads-media
|
||||
resources:
|
||||
requests:
|
||||
memory: 4Gi
|
||||
cpu: 500m
|
||||
ingress:
|
||||
enabled: true
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: "nginx"
|
||||
hosts:
|
||||
- host: qbittorrent.${SECRET_CLUSTER_DOMAIN}
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
tls:
|
||||
- hosts:
|
||||
- "qbittorrent.${SECRET_CLUSTER_DOMAIN}"
|
23
cluster/apps/media/qbittorrent/job.yaml
Normal file
23
cluster/apps/media/qbittorrent/job.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
apiVersion: batch/v1beta1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: qbittorrent-upgrade-p2pblocklist
|
||||
namespace: media
|
||||
spec:
|
||||
schedule: "@daily"
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
name: upgrade-p2pblocklist
|
||||
spec:
|
||||
serviceAccountName: jobs
|
||||
containers:
|
||||
- name: tester
|
||||
image: bitnami/kubectl:1.20.5
|
||||
command:
|
||||
- "bin/bash"
|
||||
- "-c"
|
||||
- "bash <(curl -s https://raw.githubusercontent.com/auricom/home-cluster/main/scripts/jobs-qbittorrent-p2pblocklist.bash)"
|
||||
restartPolicy: Never
|
6
cluster/apps/media/qbittorrent/kustomization.yaml
Normal file
6
cluster/apps/media/qbittorrent/kustomization.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- helm-release.yaml
|
||||
- job.yaml
|
||||
- volumes.yaml
|
50
cluster/apps/media/qbittorrent/volumes.yaml
Normal file
50
cluster/apps/media/qbittorrent/volumes.yaml
Normal file
@@ -0,0 +1,50 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: qbittorrent-config
|
||||
namespace: media
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: longhorn-backups
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: qbittorrent-cache
|
||||
namespace: media
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: local
|
||||
volumeName: qbittorrent-cache
|
||||
resources:
|
||||
requests:
|
||||
storage: 600Gi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: qbittorrent-cache
|
||||
spec:
|
||||
capacity:
|
||||
storage: 600Gi
|
||||
volumeMode: Filesystem
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
persistentVolumeReclaimPolicy: Delete
|
||||
storageClassName: local
|
||||
local:
|
||||
path: /mnt/ssd1/qbittorrent
|
||||
nodeAffinity:
|
||||
required:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
values:
|
||||
- k3s-worker3
|
Reference in New Issue
Block a user