add autobrr and omegabrr
This commit is contained in:
parent
9ee9ad6a4e
commit
49928191b8
9 changed files with 303 additions and 0 deletions
25
kubernetes/apps/default/autobrr/app/externalsecret.yaml
Normal file
25
kubernetes/apps/default/autobrr/app/externalsecret.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://ks.hsn.dev/external-secrets.io/externalsecret_v1beta1.json
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: autobrr
|
||||
spec:
|
||||
secretStoreRef:
|
||||
kind: ClusterSecretStore
|
||||
name: onepassword-connect
|
||||
target:
|
||||
name: autobrr-secret
|
||||
template:
|
||||
engineVersion: v2
|
||||
data:
|
||||
AUTOBRR__DATABASE_TYPE: postgres
|
||||
AUTOBRR__POSTGRES_DATABASE: autobrr
|
||||
AUTOBRR__POSTGRES_HOST: "postgres-primary-real.database.svc"
|
||||
AUTOBRR__POSTGRES_USER: "{{ .AUTOBRR_POSTGRES_USER }}"
|
||||
AUTOBRR__POSTGRES_PASS: "{{ .AUTOBRR_POSTGRES_PASSWORD }}"
|
||||
AUTOBRR__POSTGRES_PORT: "5432"
|
||||
AUTOBRR__SESSION_SECRET: "{{ .AUTOBRR_SESSION_SECRET }}"
|
||||
dataFrom:
|
||||
- extract:
|
||||
key: autobrr
|
86
kubernetes/apps/default/autobrr/app/helmrelease.yaml
Normal file
86
kubernetes/apps/default/autobrr/app/helmrelease.yaml
Normal file
|
@ -0,0 +1,86 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: autobrr
|
||||
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:
|
||||
strategy: rollback
|
||||
retries: 3
|
||||
values:
|
||||
controllers:
|
||||
autobrr:
|
||||
annotations:
|
||||
reloader.stakater.com/auto: "true"
|
||||
containers:
|
||||
app:
|
||||
image:
|
||||
repository: ghcr.io/autobrr/autobrr
|
||||
tag: v1.45.0@sha256:1e28bcfaf93a145f07da330a6c8990dd9d846c22dc2f6d1da52d24b4b9a0d585
|
||||
env:
|
||||
AUTOBRR__CHECK_FOR_UPDATES: "false"
|
||||
AUTOBRR__HOST: 0.0.0.0
|
||||
AUTOBRR__PORT: &port 80
|
||||
AUTOBRR__LOG_LEVEL: TRACE
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: autobrr-secret
|
||||
probes:
|
||||
liveness: &probes
|
||||
enabled: true
|
||||
custom: true
|
||||
spec:
|
||||
httpGet:
|
||||
path: /api/healthz/liveness
|
||||
port: *port
|
||||
initialDelaySeconds: 0
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 1
|
||||
failureThreshold: 3
|
||||
readiness: *probes
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
readOnlyRootFilesystem: true
|
||||
capabilities: { drop: ["ALL"] }
|
||||
resources:
|
||||
requests:
|
||||
cpu: 10m
|
||||
limits:
|
||||
memory: 256Mi
|
||||
defaultPodOptions:
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 568
|
||||
runAsGroup: 568
|
||||
seccompProfile: { type: RuntimeDefault }
|
||||
service:
|
||||
app:
|
||||
controller: autobrr
|
||||
ports:
|
||||
http:
|
||||
port: *port
|
||||
ingress:
|
||||
app:
|
||||
className: internal-nginx
|
||||
hosts:
|
||||
- host: "{{ .Release.Name }}.jahanson.tech"
|
||||
paths:
|
||||
- path: /
|
||||
service:
|
||||
identifier: app
|
||||
port: http
|
9
kubernetes/apps/default/autobrr/app/kustomization.yaml
Normal file
9
kubernetes/apps/default/autobrr/app/kustomization.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./externalsecret.yaml
|
||||
- ./helmrelease.yaml
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
27
kubernetes/apps/default/autobrr/ks.yaml
Normal file
27
kubernetes/apps/default/autobrr/ks.yaml
Normal file
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
# 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 autobrr
|
||||
namespace: flux-system
|
||||
spec:
|
||||
targetNamespace: default
|
||||
commonMetadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: *app
|
||||
dependsOn:
|
||||
- name: crunchy-postgres-operator-cluster
|
||||
- name: external-secrets-stores
|
||||
path: ./kubernetes/apps/default/autobrr/app
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: theshire
|
||||
wait: false
|
||||
interval: 30m
|
||||
retryInterval: 1m
|
||||
timeout: 5m
|
||||
postBuild:
|
||||
substitute:
|
||||
APP: *app
|
|
@ -18,3 +18,5 @@ resources:
|
|||
- ./tautulli/ks.yaml
|
||||
- ./redlib/ks.yaml
|
||||
- ./overseerr/ks.yaml
|
||||
- ./autobrr/ks.yaml
|
||||
- ./omegabrr/ks.yaml
|
||||
|
|
55
kubernetes/apps/default/omegabrr/app/externalsecret.yaml
Normal file
55
kubernetes/apps/default/omegabrr/app/externalsecret.yaml
Normal file
|
@ -0,0 +1,55 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://ks.hsn.dev/external-secrets.io/externalsecret_v1beta1.json
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: omegabrr
|
||||
spec:
|
||||
refreshInterval: 5m
|
||||
secretStoreRef:
|
||||
kind: ClusterSecretStore
|
||||
name: onepassword-connect
|
||||
target:
|
||||
name: omegabrr-secret
|
||||
template:
|
||||
engineVersion: v2
|
||||
data:
|
||||
config.yaml: |
|
||||
server:
|
||||
host: 0.0.0.0
|
||||
port: 80
|
||||
apiToken: {{ .OMEGABRR_API_KEY }}
|
||||
clients:
|
||||
autobrr:
|
||||
host: http://autobrr.default.svc.cluster.local
|
||||
apikey: {{ .AUTOBRR_API_KEY }}
|
||||
arr:
|
||||
- name: radarr
|
||||
type: radarr
|
||||
host: http://radarr.default.svc.cluster.local
|
||||
apikey: {{ .radarr_api_key }}
|
||||
filters: [2]
|
||||
excludeAlternateTitles: true
|
||||
- name: sonarr
|
||||
type: sonarr
|
||||
host: http://sonarr.default.svc.cluster.local
|
||||
apikey: {{ .sonarr_api_key }}
|
||||
filters: [3]
|
||||
excludeAlternateTitles: true
|
||||
dataFrom:
|
||||
- extract:
|
||||
key: omegabrr
|
||||
- extract:
|
||||
key: autobrr
|
||||
- extract:
|
||||
key: radarr
|
||||
rewrite:
|
||||
- regexp:
|
||||
source: "(.*)"
|
||||
target: "radarr_$1"
|
||||
- extract:
|
||||
key: sonarr
|
||||
rewrite:
|
||||
- regexp:
|
||||
source: "(.*)"
|
||||
target: "sonarr_$1"
|
65
kubernetes/apps/default/omegabrr/app/helmrelease.yaml
Normal file
65
kubernetes/apps/default/omegabrr/app/helmrelease.yaml
Normal file
|
@ -0,0 +1,65 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: omegabrr
|
||||
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:
|
||||
strategy: rollback
|
||||
retries: 3
|
||||
values:
|
||||
controllers:
|
||||
omegabrr:
|
||||
annotations:
|
||||
reloader.stakater.com/auto: "true"
|
||||
containers:
|
||||
app:
|
||||
image:
|
||||
repository: ghcr.io/autobrr/omegabrr
|
||||
tag: v1.14.0@sha256:6f65c7967609746662815933ecc8168c8c25a3b82d909f49833fcce2b47ee052
|
||||
env:
|
||||
TZ: America/Chicago
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
readOnlyRootFilesystem: true
|
||||
capabilities: { drop: ["ALL"] }
|
||||
resources:
|
||||
requests:
|
||||
cpu: 10m
|
||||
limits:
|
||||
memory: 256Mi
|
||||
defaultPodOptions:
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 568
|
||||
runAsGroup: 568
|
||||
seccompProfile: { type: RuntimeDefault }
|
||||
service:
|
||||
app:
|
||||
controller: omegabrr
|
||||
ports:
|
||||
http:
|
||||
port: 80
|
||||
persistence:
|
||||
config-file:
|
||||
type: secret
|
||||
name: omegabrr-secret
|
||||
globalMounts:
|
||||
- path: /config/config.yaml
|
||||
subPath: config.yaml
|
||||
readOnly: true
|
8
kubernetes/apps/default/omegabrr/app/kustomization.yaml
Normal file
8
kubernetes/apps/default/omegabrr/app/kustomization.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: default
|
||||
resources:
|
||||
- ./externalsecret.yaml
|
||||
- ./helmrelease.yaml
|
26
kubernetes/apps/default/omegabrr/ks.yaml
Normal file
26
kubernetes/apps/default/omegabrr/ks.yaml
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
# 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 omegabrr
|
||||
namespace: flux-system
|
||||
spec:
|
||||
targetNamespace: default
|
||||
commonMetadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: *app
|
||||
dependsOn:
|
||||
- name: external-secrets-stores
|
||||
path: ./kubernetes/apps/default/omegabrr/app
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: theshire
|
||||
wait: false
|
||||
interval: 30m
|
||||
retryInterval: 1m
|
||||
timeout: 5m
|
||||
postBuild:
|
||||
substitute:
|
||||
APP: *app
|
Loading…
Reference in a new issue