Skip to content

Commit

Permalink
fix: omegabrr back in action or maybe I am bored
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p committed Aug 13, 2024
1 parent d7643d1 commit 387d41f
Show file tree
Hide file tree
Showing 5 changed files with 146 additions and 0 deletions.
1 change: 1 addition & 0 deletions kubernetes/main/apps/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ resources:
- ./kopia/ks.yaml
- ./minio/ks.yaml
- ./miniflux/ks.yaml
- ./omegabrr/ks.yaml
- ./overseerr/ks.yaml
- ./plex/ks.yaml
- ./prowlarr/ks.yaml
Expand Down
46 changes: 46 additions & 0 deletions kubernetes/main/apps/default/omegabrr/app/externalsecret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.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: [1]
- name: sonarr
type: sonarr
host: http://sonarr.default.svc.cluster.local
apikey: {{ .SONARR_API_KEY }}
filters: [2]
excludeAlternateTitles: true
dataFrom:
- extract:
key: omegabrr
- extract:
key: autobrr
- extract:
key: radarr
- extract:
key: sonarr
65 changes: 65 additions & 0 deletions kubernetes/main/apps/default/omegabrr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -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/v2beta1
kind: HelmRelease
metadata:
name: omegabrr
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 3.3.2
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/omegabrr
tag: v1.13.1@sha256:ea3fca614459b6ffa0cd6b86c52195eb2a0705bfe0d9a2d88588afaa83762494
env:
TZ: America/New_York
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities: { drop: ["ALL"] }
resources:
requests:
cpu: 10m
limits:
memory: 256Mi
defaultPodOptions:
securityContext:
runAsNonRoot: true
runAsUser: 65534
runAsGroup: 65534
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 changes: 8 additions & 0 deletions kubernetes/main/apps/default/omegabrr/app/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -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 changes: 26 additions & 0 deletions kubernetes/main/apps/default/omegabrr/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.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/main/apps/default/omegabrr/app
prune: true
sourceRef:
kind: GitRepository
name: home-kubernetes
wait: false
interval: 30m
retryInterval: 1m
timeout: 5m
postBuild:
substitute:
APP: *app

0 comments on commit 387d41f

Please sign in to comment.