♻️ flux kustomizations

This commit is contained in:
auricom
2022-12-26 15:24:33 +01:00
parent b4572bf19a
commit ca31e11491
730 changed files with 6825 additions and 3766 deletions

View File

@@ -0,0 +1,62 @@
---
apiVersion: batch/v1
kind: CronJob
metadata:
name: recyclarr
namespace: default
spec:
schedule: "@daily"
jobTemplate:
spec:
ttlSecondsAfterFinished: 86400
template:
spec:
automountServiceAccountToken: false
restartPolicy: OnFailure
initContainers:
- name: render-configs
image: ghcr.io/onedr0p/alpine:3.17.0
envFrom:
- secretRef:
name: radarr-secret
- secretRef:
name: sonarr-secret
command:
- "/bin/bash"
- -c
args:
- "envsubst < /config/recyclarr.yml > /shared/recyclarr.yml"
volumeMounts:
- name: config
mountPath: /config
- name: shared
mountPath: /shared
containers:
- name: sonarrs
image: ghcr.io/recyclarr/recyclarr:4.0.2
command:
- /app/recyclarr/recyclarr
args:
- sonarr
volumeMounts:
- name: shared
mountPath: /config/recyclarr.yml
subPath: recyclarr.yml
readOnly: true
- name: radarrs
image: ghcr.io/recyclarr/recyclarr:4.0.2
command:
- /app/recyclarr/recyclarr
args:
- radarr
volumeMounts:
- name: shared
mountPath: /config/recyclarr.yml
subPath: recyclarr.yml
readOnly: true
volumes:
- name: config
configMap:
name: recyclarr-configmap
- name: shared
emptyDir: {}

View File

@@ -0,0 +1,16 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: default
resources:
- ./cronjob.yaml
- ./secret.sops.yaml
configMapGenerator:
- name: recyclarr-configmap
files:
- ./recyclarr.yml
generatorOptions:
disableNameSuffixHash: true
annotations:
kustomize.toolkit.fluxcd.io/substitute: disabled

View File

@@ -0,0 +1,162 @@
---
# A starter config to use with Trash Updater. Most values are set to "reasonable defaults".
# Update the values below as needed for your instance. You will be required to update the
# API Key and URL for each instance you want to use.
#
# Many optional settings have been omitted to keep this template simple.
#
# For more details on the configuration, see the Configuration Reference on the wiki here:
# https://github.com/rcdailey/trash-updater/wiki/Configuration-Reference
sonarr:
standard:
base_url: http://sonarr.default.svc.cluster.local:8080
api_key: ${SONARR_APIKEY}
delete_old_custom_formats: true
quality_definition:
type: series
custom_formats:
- trash_ids:
# Streaming Services
- d660701077794679fd59e8bdf4ce3a29 # AMZN
- f67c9ca88f463a48346062e8ad07713f # ATVP
- 36b72f59f4ea20aad9316f475f2d9fbb # DCU
- 89358767a60cc28783cdc3d0be9388a4 # DSNP
- 7a235133c87f7da4c8cccceca7e3c7a6 # HBO
- a880d6abc21e7c16884f3ae393f84179 # HMAX
- f6cce30f1733d5c8194222a7507909bb # HULU
- 0ac24a2a68a9700bcb7eeca8e5cd644c # iT
- d34870697c9db575f17700212167be23 # NF
- 1656adc6d7bb2c8cca6acfb6592db421 # PCOK
- c67a75ae4a1715f2bb4d492755ba4195 # PMTP
- 3ac5d84fce98bab1b531393e9c82f467 # QIBI
- c30d2958827d1867c73318a5a2957eb1 # RED
- ae58039e1319178e6be73caab5c42166 # SHO
# Allowed Scene groups and tiered P2P groups
- d0c516558625b04b363fa6c5c2c7cfd4 # WEB Scene (allowed Scene groups)
- e6258996055b9fbab7e9cb2f75819294 # WEB Tier 01
- 58790d4e2fdcd9733aa7ae68ba2bb503 # WEB Tier 02
- d84935abd3f8556dcd51d4f27e22d0a6 # WEB Tier 03
# Repacks / Propers
- ec8fa7296b64e8cd390a1600981f3923 # Repack/Proper
- eb3d5cc0a2be0db205fb823640db6a3c # Repack v2
- 44e7c4de10ae50265753082e5dc76047 # Repack v3
# HDR Metadata
- 7878c33f1963fefb3d6c8657d46c2f0a # DV HDR10
- 1f733af03141f068a540eec352589a89 # DV HLG
- 27954b0a80aab882522a88a4d9eae1cd # DV SDR
- 6d0d8de7b57e35518ac0308b0ddf404e # DV
- bb019e1cd00f304f80971c965de064dc # HDR (undefined)
- 3e2c4e748b64a1a1118e0ea3f4cf6875 # HDR
- 3497799d29a085e2ac2df9d468413c94 # HDR10
- a3d82cbef5039f8d295478d28a887159 # HDR10+
- 17e889ce13117940092308f48b48b45b # HLG
- 2a7e3be05d3861d6df7171ec74cad727 # PQ
# Unwanted
- 32b367365729d530ca1c124a0b180c64 # Bad Dual Groups
- 85c61753df5da1fb2aab6f2a47426b09 # BR-DISK
- 9c14d194486c4014d422adc64092d794 # Dubs Only
- 9c11cd3f07101cdba90a2d81cf0e56b4 # LQ
- 82d40da2bc6923f41e14394075dd4b03 # No-RlsGroup
- e1a997ddb54e3ecbfe06341ad323c458 # Obfuscated
- 06d66ab109d4d2eddb2794d21526d140 # Retags
- 47435ece6b99a0b477caf360e79ba0bb # x265 (HD)
quality_profiles:
- name: Any
reset_unmatched_scores: true
- name: HD
reset_unmatched_scores: true
- name: SD
reset_unmatched_scores: true
radarr:
standard:
base_url: http://radarr.default.svc.cluster.local:8080
api_key: ${RADARR_APIKEY}
delete_old_custom_formats: true
quality_definition:
type: movie
custom_formats:
- trash_ids:
- ff5bc9e8ce91d46c997ca3ac6994d6f8 # UHD FraMeSToR (set to 0, 1 or 3200)
quality_profiles:
- name: Any
score: 1
- name: HD
score: 1
- name: Remux
score: 1
- trash_ids:
- 496f355514737f7d83bf7aa4d24f8169 # TrueHD Atmos
- 2f22d89048b01681dde8afe203bf2e95 # DTS X
- 417804f7f2c4308c1f4c5d380d4c4475 # ATMOS (undefined)
- 1af239278386be2919e1bcee0bde047e # DD+ Atmos
- 3cafb66171b47f226146a0770576870f # TrueHD
- dcf3ec6938fa32445f590a4da84256cd # DTS-HD MA
- a570d4a0e56a2874b64e5bfa55202a1b # FLAC
- e7c2fcae07cbada050a0af3357491d7b # PCM
- 8e109e50e0a0b83a5098b056e13bf6db # DTS-HD HRA
- 185f1dd7264c4562b9022d963ac37424 # DD+
- f9f847ac70a0af62ea4a08280b859636 # DTS-ES
- 1c1a4c5e823891c75bc50380a6866f73 # DTS
- 240770601cc226190c367ef59aba7463 # ACC
- c2998bd0d90ed5621d8df281e839436e # DD
- e23edd2482476e595fb990b12e7c609c # DV HDR10 HDR/DV Custom Formats
- 58d6a88f13e2db7f5059c41047876f00 # DV
- 55d53828b9d81cbe20b02efd00aa0efd # DV HLG HDR/DV Custom Formats
- a3e19f8f627608af0211acd02bf89735 # DV SDR HDR/DV Custom Formats
- b974a6cd08c1066250f1f177d7aa1225 # HDR10Plus
- dfb86d5941bc9075d6af23b09c2aeecd # HDR10
- e61e28db95d22bedcadf030b8f156d96 # HDR
- 2a4d9069cc1fe3242ff9bdaebed239bb # HDR (Undefined)
- 08d6d8834ad9ec87b1dc7ec8148e7a1f # PQ several HDR/DV Custom Formats
- 9364dd386c9b4a1100dde8264690add7 # HLG
- 0f12c086e289cf966fa5948eac571f44 # Hybrid
- 570bc9ebecd92723d2d21500f4be314c # Remaster
- eca37840c13c6ef2dd0262b141a5482f # 4K Remaster
- e0c07d59beb37348e975a930d5e50319 # Criterion Collection
- 957d0f44b592285f26449575e8b1167e # Special Edition
- eecf3a857724171f968a66cb5719e152 # IMAX
- 9f6cbff8cfe4ebbc1bde14c7b7bec0de # IMAX Enhanced
- 403f3f6266b90439cacc1e07cae4dc2d # HQ-Remux
- 26fa26253af4001701fedb56cec376dc # HQ-Webdl
- 66aaa8c2c03c0191a95f0d655b75ab10 # UHD CtrlHD
- 4da96773192a51cf96178212642ca3bb # UHD LEGi0N
- 96848626e1570c122aba8642fe2714a2 # UHD HQMUX
- ffebc267e9c98d3d383f37b238550079 # UHD W4NK3R
- ac49fdbf6a662d380556f40ff4856f29 # UHD WEBDV
- afeb99e5db09290546f742503ce1cdb6 # UHD DON
- e7718d7a3ce595f289bfee26adc178f5 # Repack
- ed38b889b31be83fda192888e2286d83 # BR-DISK -10000
- 90cedc1fea7ea5d11298bebd3d1d3223 # EVO (no WEBDL) -1000
- 90a6f9a284dff5103f6346090e6280c8 # LQ -10000
- b8cd450cbfa689c0259a01d9e29ba3d6 # 3D -10000
- 7357cf5161efbf8c4d5d0c30b4815ee2 # Obfuscated
- ae9b7c9ebde1f3bd336a8cbd1ec4c5e5 # No-RlsGroup removed do avoid multiple downloads
- dc98083864ea246d05a42df0d05f81cc # x265 (720/1080p)
quality_profiles:
- name: Any
reset_unmatched_scores: true
- name: HD
reset_unmatched_scores: true
- name: SD
reset_unmatched_scores: true
- trash_ids:
- 1c7d7b04b15cc53ea61204bebbcc1ee2 # HQ
quality_profiles:
- name: Any
score: 0
- name: HD
score: 0
- name: SD
score: 0
- trash_ids:
- 4b900e171accbfb172729b63323ea8ca # Optional: Multi
- 923b6abef9b17f937fab56cfcf89e1f1 # Optional: DV (WEBDL) without fallback to HDR, set to manual score 0 or -10000
quality_profiles:
- name: Any
score: 0
- name: HD
score: 0
- name: SD
score: 0

View File

@@ -0,0 +1,30 @@
# yamllint disable
apiVersion: v1
kind: Secret
metadata:
name: recyclarr
namespace: default
type: Opaque
stringData:
RADARR_APIKEY: ENC[AES256_GCM,data:1QbSAMl0/rSOq3wPx8lkAkLGKlUzoSPQoYgSb5bh7kI=,iv:lhxNvMvl13E+a1PHViyhHZJ5w6ugr6YnR7to/d2m7w4=,tag:t4YYyJ9Nfsd5Ey19TyQ+4Q==,type:str]
SONARR_APIKEY: ENC[AES256_GCM,data:OfRJVHh/i8kp1C3DBvhVmBmu0cDMtotzVCBlqyo0Gms=,iv:2q2e/LIZvJHG3ensZSC14M06OH5rf8WF/C6dw8rLxLc=,tag:xuOIAoTOLoVdfmNZpxAUpg==,type:str]
sops:
kms: []
gcp_kms: []
azure_kv: []
hc_vault: []
age:
- recipient: age1hhurqwmfvl9m3vh3hk8urulfzcdsrep2ax2neazqt435yhpamu3qj20asg
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBWWEg2ZW0zS2VVWVBsMTgx
bVdydkN3aW5GSHczd2xod2owc2VwWVBLQUFRCnBmVGFvYmttVmFMaGNSeW9kTCtM
cEpSWm5tYkhZRGJhRUNIM0lKWStoS28KLS0tIE5pWHp1Tk0yTXlJYXNOWFNONmhz
Z0MvSzFZcU4zM3JZWDlNZ01KTW94emcKVNr7SDcNgGF/HoPk/qk72DCFUQm9mfdp
ZFdxh8Fe3eEoUKuqNyuMq9HIJJaYxj3vyHKer8f1pfiUdmKkBFTT3Q==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2022-09-15T04:13:16Z"
mac: ENC[AES256_GCM,data:R0HGv0eYumPHjSFF4yhqnv7MyEljF0S4LfDejz+v8gMlkffPXXdgG8JAedEVEGpbUC1tsc5e8X7QR69vZ6zt+LApyKKTOBG9i2gfhr986uexbmPuL1fMjT5eCI+Rddi8VSUWDTFPDI4YIKWowW1MSKLdV7KiSHUsPD2dwwQ8aJM=,iv:uNREYlkdZOxGZyU3LX0vW+GEkGPr2Uuzzx+jZrffJLw=,tag:cuT2n58cmStbLrgbwV6jOw==,type:str]
pgp: []
encrypted_regex: ^(data|stringData)$
version: 3.7.3

View File

@@ -0,0 +1,22 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/kustomization_v1beta2.json
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: cluster-apps-recyclarr-app
namespace: flux-system
labels:
substitution.flux.home.arpa/enabled: "true"
spec:
dependsOn:
- name: cluster-apps-radarr-app
- name: cluster-apps-sonarr-app
path: ./kubernetes/apps/default/recyclarr/app
prune: true
sourceRef:
kind: GitRepository
name: home-ops-kubernetes
wait: true
interval: 30m
retryInterval: 1m
timeout: 3m