mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2025-12-17 03:34:28 +00:00
decluttarr
This commit is contained in:
90
roles/decluttarr/files/decluttarr-deployment.yaml
Normal file
90
roles/decluttarr/files/decluttarr-deployment.yaml
Normal file
@ -0,0 +1,90 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: decluttarr
|
||||
namespace: stack-arr
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: decluttarr
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: decluttarr
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
containers:
|
||||
- name: decluttarr
|
||||
image: ghcr.io/manimatter/decluttarr:latest
|
||||
env:
|
||||
- name: PUID
|
||||
value: "1013"
|
||||
- name: PGID
|
||||
value: "1013"
|
||||
- name: TZ
|
||||
value: 'Etc/UTC'
|
||||
- name: REMOVE_TIMER
|
||||
value: '1'
|
||||
- name: REMOVE_FAILED
|
||||
value: 'True'
|
||||
- name: REMOVE_FAILED_IMPORTS
|
||||
value: 'True'
|
||||
- name: REMOVE_METADATA_MISSING
|
||||
value: 'True'
|
||||
- name: REMOVE_MISSING_FILES
|
||||
value: 'True'
|
||||
- name: REMOVE_ORPHANS
|
||||
value: 'True'
|
||||
- name: REMOVE_SLOW
|
||||
value: 'False'
|
||||
- name: REMOVE_STALLED
|
||||
value: 'True'
|
||||
- name: REMOVE_UNMONITORED
|
||||
value: 'False'
|
||||
- name: MIN_DOWNLOAD_SPEED
|
||||
value: '100'
|
||||
- name: PERMITTED_ATTEMPTS
|
||||
value: '2'
|
||||
- name: RADARR_URL
|
||||
value: http://192.168.1.243:7878/radarr
|
||||
- name: RADARR_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: decluttarr-secret
|
||||
key: radarrapikey
|
||||
- name: SONARR_URL
|
||||
value: http://sonarr-service.stack-arr.svc.cluster.local:8989
|
||||
- name: SONARR_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: decluttarr-secret
|
||||
key: sonarrapikey
|
||||
- name: QBITTORRENT_URL
|
||||
value: http://qbittorrent-service.stack-arr.svc.cluster.local:8080
|
||||
- name: QBITTORRENT_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: decluttarr-secret
|
||||
key: qbittorrentuser
|
||||
- name: QBITTORRENT_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: decluttarr-secret
|
||||
key: qbittorrentpass
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /config
|
||||
- name: downloads
|
||||
mountPath: /data/downloads
|
||||
volumes:
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: decluttarr-config-pvc
|
||||
- name: downloads
|
||||
persistentVolumeClaim:
|
||||
claimName: qbittorrent-downloads-pvc
|
||||
|
||||
|
||||
|
||||
12
roles/decluttarr/files/decluttarr-nfs-csi.yaml
Normal file
12
roles/decluttarr/files/decluttarr-nfs-csi.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: decluttarr-nfs-csi
|
||||
namespace: stack-arr
|
||||
provisioner: nfs.csi.k8s.io
|
||||
parameters:
|
||||
server: 192.168.1.22
|
||||
share: /mnt/fenix-main-nas-pool-0/data/k8s-Volumes/k8s-cluster-iac-deployed/stack-arr/decluttarr
|
||||
allowVolumeExpansion: true
|
||||
reclaimPolicy: Retain
|
||||
---
|
||||
30
roles/decluttarr/files/decluttarr-pvcs.yaml
Normal file
30
roles/decluttarr/files/decluttarr-pvcs.yaml
Normal file
@ -0,0 +1,30 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: decluttarr-config-pv
|
||||
namespace: stack-arr
|
||||
spec:
|
||||
capacity:
|
||||
storage: 2Gi
|
||||
storageClassName: decluttarr-nfs-csi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
nfs:
|
||||
server: 192.168.1.22
|
||||
path: /mnt/fenix-main-nas-pool-0/data/k8s-Volumes/k8s-cluster-iac-deployed/stack-arr/decluttarr/config
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: decluttarr-config-pvc
|
||||
namespace: stack-arr
|
||||
spec:
|
||||
storageClassName: decluttarr-nfs-csi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
volumeName: decluttarr-config-pv
|
||||
resources:
|
||||
requests:
|
||||
storage: 2Gi
|
||||
---
|
||||
11
roles/decluttarr/files/decluttarr-secret.yaml
Normal file
11
roles/decluttarr/files/decluttarr-secret.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: decluttarr-secret
|
||||
namespace: stack-arr
|
||||
type: Opaque
|
||||
data:
|
||||
qbittorrentuser: dXNlcm5hbWU=
|
||||
qbittorrentpass: cGFzc3dvcmQ=
|
||||
radarrapikey: YXBpa2V5
|
||||
sonarrapikey: YXBpa2V5
|
||||
Reference in New Issue
Block a user