add unpackerr

This commit is contained in:
Joseph Hanson 2024-09-05 04:36:42 -05:00
parent 8346a566bd
commit f0d975a1ac
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
5 changed files with 145 additions and 0 deletions

View file

@ -14,3 +14,4 @@ resources:
- ./sabnzbd/ks.yaml
- ./atuin/ks.yaml
- ./prowlarr/ks.yaml
- ./unpackerr/ks.yaml

View file

@ -0,0 +1,30 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/external-secrets.io/externalsecret_v1beta1.json
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: unpackerr
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: unpackerr-secret
template:
engineVersion: v2
data:
UN_RADARR_0_API_KEY: "{{ .radarr_api_key }}"
UN_SONARR_0_API_KEY: "{{ .sonarr_api_key }}"
dataFrom:
- extract:
key: radarr
rewrite:
- regexp:
source: "(.*)"
target: "radarr_$1"
- extract:
key: sonarr
rewrite:
- regexp:
source: "(.*)"
target: "sonarr_$1"

View file

@ -0,0 +1,84 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: unpackerr
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 3.4.0
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
strategy: rollback
values:
controllers:
unpackerr:
annotations:
reloader.stakater.com/auto: "true"
containers:
app:
image:
repository: ghcr.io/unpackerr/unpackerr
tag: 0.14.5@sha256:dc72256942ce50d1c8a1aeb5aa85b6ae2680a36eefd2182129d8d210fce78044
env:
TZ: America/Chicago
UN_WEBSERVER_METRICS: "true"
UN_SONARR_0_URL: http://sonarr.default.svc.cluster.local
UN_SONARR_0_PATHS_0: /data/nas-media/qb/downloads/complete/sonarr/
UN_RADARR_0_URL: http://radarr.default.svc.cluster.local
UN_RADARR_0_PATHS_0: /data/nas-media/qb/downloads/complete/radarr/
envFrom:
- secretRef:
name: unpackerr-secret
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities: { drop: ["ALL"] }
resources:
requests:
cpu: 10m
limits:
memory: 4Gi
pod:
securityContext:
runAsUser: 568
runAsGroup: 568
runAsNonRoot: true
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
service:
app:
controller: unpackerr
ports:
http:
port: 5656
serviceMonitor:
app:
serviceName: unpackerr
endpoints:
- port: http
scheme: http
path: /metrics
interval: 1m
scrapeTimeout: 10s
persistence:
media:
type: nfs
server: 10.1.1.13
path: /eru/media
advancedMounts:
unpackerr:
app:
- path: /data/nas-media

View file

@ -0,0 +1,7 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./externalsecret.yaml
- ./helmrelease.yaml

View file

@ -0,0 +1,23 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app unpackerr
namespace: flux-system
spec:
targetNamespace: default
commonMetadata:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: external-secrets-stores
path: ./kubernetes/apps/default/unpackerr/app
prune: true
sourceRef:
kind: GitRepository
name: theshire
wait: false
interval: 30m
retryInterval: 1m
timeout: 5m