Skip to content

Commit

Permalink
chore(sonarr): pull api key from secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
ctso committed Jan 1, 2024
1 parent 4dbe5c8 commit 47e0aae
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
19 changes: 19 additions & 0 deletions kubernetes/apps/download/sonarr/app/externalsecret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/external-secrets.io/externalsecret_v1beta1.json
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: sonarr
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: sonarr
template:
engineVersion: v2
data:
SONARR__API_KEY: "{{ .SONARR_API_KEY }}"
dataFrom:
- extract:
key: sonarr
3 changes: 3 additions & 0 deletions kubernetes/apps/download/sonarr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ spec:
SONARR__AUTHENTICATION_REQUIRED: DisabledForLocalAddresses
SONARR__APPLICATION_URL: "https://sonarr.${SECRET_DOMAIN}"
SONARR__LOG_LEVEL: info
envFrom:
- secretRef:
name: sonarr
resources:
requests:
cpu: 20m
Expand Down
1 change: 1 addition & 0 deletions kubernetes/apps/download/sonarr/app/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./externalsecret.yaml
- ./helmrelease.yaml
- ../../../../templates/volsync

0 comments on commit 47e0aae

Please sign in to comment.