add prowlarr
This commit is contained in:
parent
b81d0113ad
commit
8346a566bd
5 changed files with 167 additions and 0 deletions
|
@ -13,3 +13,4 @@ resources:
|
|||
- ./sonarr/ks.yaml
|
||||
- ./sabnzbd/ks.yaml
|
||||
- ./atuin/ks.yaml
|
||||
- ./prowlarr/ks.yaml
|
||||
|
|
24
kubernetes/apps/default/prowlarr/app/externalsecret.yaml
Normal file
24
kubernetes/apps/default/prowlarr/app/externalsecret.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://ks.hsn.dev/external-secrets.io/externalsecret_v1beta1.json
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: prowlarr
|
||||
spec:
|
||||
secretStoreRef:
|
||||
kind: ClusterSecretStore
|
||||
name: onepassword-connect
|
||||
target:
|
||||
name: prowlarr-secret
|
||||
template:
|
||||
engineVersion: v2
|
||||
data:
|
||||
PROWLARR__AUTH__APIKEY: "{{ .api_key }}"
|
||||
PROWLARR__POSTGRES__HOST: "postgres-primary-real.database.svc"
|
||||
PROWLARR__POSTGRES__PORT: "5432"
|
||||
PROWLARR__POSTGRES__USER: "{{ .PROWLARR_POSTGRES_USER }}"
|
||||
PROWLARR__POSTGRES__PASSWORD: "{{ .PROWLARR_POSTGRES_PASSWORD }}"
|
||||
PROWLARR__POSTGRES__MAINDB: prowlarr_main
|
||||
dataFrom:
|
||||
- extract:
|
||||
key: prowlarr
|
106
kubernetes/apps/default/prowlarr/app/helmrelease.yaml
Normal file
106
kubernetes/apps/default/prowlarr/app/helmrelease.yaml
Normal file
|
@ -0,0 +1,106 @@
|
|||
---
|
||||
# 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: prowlarr
|
||||
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:
|
||||
prowlarr:
|
||||
annotations:
|
||||
reloader.stakater.com/auto: "true"
|
||||
containers:
|
||||
app:
|
||||
image:
|
||||
repository: ghcr.io/onedr0p/prowlarr-develop
|
||||
tag: 1.21.2.4649@sha256:4482eda920a8786faa2b7f9100001aaaa3893582e2a98685982f5b4b160e45db
|
||||
env:
|
||||
# Ref: https://github.com/Radarr/Radarr/issues/7030#issuecomment-1039689518
|
||||
# Ref: https://github.com/dotnet/runtime/issues/9336
|
||||
PROWLARR__APP__INSTANCENAME: Prowlarr
|
||||
PROWLARR__APP__THEME: dark
|
||||
PROWLARR__AUTH__METHOD: External
|
||||
PROWLARR__AUTH__REQUIRED: DisabledForLocalAddresses
|
||||
PROWLARR__LOG__DBENABLED: "False"
|
||||
PROWLARR__LOG__LEVEL: info
|
||||
PROWLARR__SERVER__PORT: &port 80
|
||||
PROWLARR__UPDATE__BRANCH: develop
|
||||
TZ: America/Chicago
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: prowlarr-secret
|
||||
probes:
|
||||
liveness: &probes
|
||||
enabled: true
|
||||
custom: true
|
||||
spec:
|
||||
httpGet:
|
||||
path: /ping
|
||||
port: *port
|
||||
initialDelaySeconds: 0
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 1
|
||||
failureThreshold: 3
|
||||
readiness: *probes
|
||||
startup:
|
||||
enabled: false
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
readOnlyRootFilesystem: true
|
||||
capabilities: { drop: ["ALL"] }
|
||||
resources:
|
||||
requests:
|
||||
cpu: 10m
|
||||
limits:
|
||||
memory: 1Gi
|
||||
pod:
|
||||
securityContext:
|
||||
runAsUser: 568
|
||||
runAsGroup: 568
|
||||
runAsNonRoot: true
|
||||
fsGroup: 568
|
||||
fsGroupChangePolicy: OnRootMismatch
|
||||
service:
|
||||
app:
|
||||
controller: prowlarr
|
||||
ports:
|
||||
http:
|
||||
port: *port
|
||||
ingress:
|
||||
app:
|
||||
enabled: true
|
||||
className: internal-nginx
|
||||
hosts:
|
||||
- host: &host "{{ .Release.Name }}.jahanson.tech"
|
||||
paths:
|
||||
- path: /
|
||||
service:
|
||||
identifier: app
|
||||
port: http
|
||||
tls:
|
||||
- hosts:
|
||||
- *host
|
||||
persistence:
|
||||
config:
|
||||
enabled: true
|
||||
type: emptyDir
|
||||
tmp:
|
||||
type: emptyDir
|
7
kubernetes/apps/default/prowlarr/app/kustomization.yaml
Normal file
7
kubernetes/apps/default/prowlarr/app/kustomization.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./helmrelease.yaml
|
||||
- ./externalsecret.yaml
|
29
kubernetes/apps/default/prowlarr/ks.yaml
Normal file
29
kubernetes/apps/default/prowlarr/ks.yaml
Normal file
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
# 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 prowlarr
|
||||
namespace: flux-system
|
||||
spec:
|
||||
targetNamespace: default
|
||||
commonMetadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: *app
|
||||
dependsOn:
|
||||
- name: crunchy-postgres-operator
|
||||
- name: external-secrets-stores
|
||||
path: ./kubernetes/apps/default/prowlarr/app
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: theshire
|
||||
wait: false
|
||||
interval: 30m
|
||||
retryInterval: 1m
|
||||
timeout: 5m
|
||||
postBuild:
|
||||
substitute:
|
||||
APP: *app
|
||||
DB_NAME: prowlarr
|
||||
DB_USER: prowlarr
|
Loading…
Reference in a new issue