add unpackerr
This commit is contained in:
parent
8346a566bd
commit
f0d975a1ac
5 changed files with 145 additions and 0 deletions
|
@ -14,3 +14,4 @@ resources:
|
|||
- ./sabnzbd/ks.yaml
|
||||
- ./atuin/ks.yaml
|
||||
- ./prowlarr/ks.yaml
|
||||
- ./unpackerr/ks.yaml
|
||||
|
|
30
kubernetes/apps/default/unpackerr/app/externalsecret.yaml
Normal file
30
kubernetes/apps/default/unpackerr/app/externalsecret.yaml
Normal 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"
|
84
kubernetes/apps/default/unpackerr/app/helmrelease.yaml
Normal file
84
kubernetes/apps/default/unpackerr/app/helmrelease.yaml
Normal 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
|
7
kubernetes/apps/default/unpackerr/app/kustomization.yaml
Normal file
7
kubernetes/apps/default/unpackerr/app/kustomization.yaml
Normal 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
|
23
kubernetes/apps/default/unpackerr/ks.yaml
Normal file
23
kubernetes/apps/default/unpackerr/ks.yaml
Normal 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
|
Loading…
Reference in a new issue