Skip to content

Commit

Permalink
feat(media): deploy jellyseerr
Browse files Browse the repository at this point in the history
  • Loading branch information
buroa committed Dec 5, 2024
1 parent 71753fd commit 75770b6
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 23 deletions.
30 changes: 30 additions & 0 deletions kubernetes/apps/media/jellyseerr/app/externalsecret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: jellyseerr
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: jellyseerr-secret
template:
engineVersion: v2
data:
DB_TYPE: postgres
DB_HOST: &dbHost postgres-rw.databases.svc.cluster.local
DB_PORT: "5432"
DB_USER: &dbUser "{{ .JELLYSEERR_POSTGRES_USER }}"
DB_PASS: &dbPass "{{ .JELLYSEERR_POSTGRES_PASS }}"
DB_NAME: &dbName jellyseerr
INIT_POSTGRES_HOST: *dbHost
INIT_POSTGRES_USER: *dbUser
INIT_POSTGRES_PASS: *dbPass
INIT_POSTGRES_DBNAME: *dbName
INIT_POSTGRES_SUPER_PASS: "{{ .POSTGRES_SUPER_PASS }}"
dataFrom:
- extract:
key: jellyseerr
- extract:
key: cloudnative-pg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: &app overseerr
name: &app jellyseerr
spec:
interval: 30m
chart:
Expand All @@ -23,16 +23,27 @@ spec:
retries: 3
values:
controllers:
overseerr:
jellyseerr:
annotations:
reloader.stakater.com/auto: "true"
initContainers:
init-db:
image:
repository: ghcr.io/buroa/postgres-init
tag: 16
envFrom: &envFrom
- secretRef:
name: jellyseerr-secret
containers:
app:
image:
repository: ghcr.io/sct/overseerr
tag: develop@sha256:568f126f69663cf764d12bf19ba5a250be2246cca49852e556f363d0acac2603
repository: docker.io/fallenbagel/jellyseerr
tag: preview-postgres@sha256:f189c58bf2692babc3f2dd7ce6bb4931a4942679eaedcc00a4ddbc4cd49bc002
env:
LOG_LEVEL: info
PORT: &port 5055
TZ: ${TIMEZONE}
envFrom: *envFrom
probes:
liveness: &probes
enabled: true
Expand Down Expand Up @@ -69,7 +80,7 @@ spec:
className: external
annotations:
gatus.io/path: *path
hajimari.io/icon: mdi:eye-circle
hajimari.io/icon: cbi:jellyseerr
hajimari.io/url: https://requests.ktwo.io
hosts:
- host: &host "{{ .Release.Name }}.ktwo.io"
Expand All @@ -86,7 +97,7 @@ spec:
- *customHost
persistence:
cache:
existingClaim: overseerr-cache
existingClaim: jellyseerr-cache
globalMounts:
- path: /app/config/cache
config:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./externalsecret.yaml
- ./helmrelease.yaml
- ./pvc.yaml
- ./volsync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: overseerr-cache
name: jellyseerr-cache
spec:
accessModes: ["ReadWriteOnce"]
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: overseerr-restic
name: jellyseerr-restic
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: overseerr-restic-secret
name: jellyseerr-restic-secret
creationPolicy: Owner
template:
engineVersion: v2
data:
RESTIC_REPOSITORY: "{{ .REPOSITORY_TEMPLATE }}/overseerr"
RESTIC_REPOSITORY: "{{ .REPOSITORY_TEMPLATE }}/jellyseerr"
RESTIC_PASSWORD: "{{ .RESTIC_PASSWORD }}"
AWS_ACCESS_KEY_ID: "{{ .AWS_ACCESS_KEY_ID }}"
AWS_SECRET_ACCESS_KEY: "{{ .AWS_SECRET_ACCESS_KEY }}"
Expand All @@ -24,13 +24,13 @@ spec:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: overseerr
name: jellyseerr
spec:
accessModes: ["ReadWriteOnce"]
dataSourceRef:
kind: ReplicationDestination
apiGroup: volsync.backube
name: overseerr
name: jellyseerr
resources:
requests:
storage: 2Gi
Expand All @@ -39,12 +39,12 @@ spec:
apiVersion: volsync.backube/v1alpha1
kind: ReplicationDestination
metadata:
name: overseerr
name: jellyseerr
spec:
trigger:
manual: restore-once
restic:
repository: overseerr-restic-secret
repository: jellyseerr-restic-secret
copyMethod: Snapshot
accessModes: ["ReadWriteOnce"]
storageClassName: ceph-block
Expand All @@ -61,14 +61,14 @@ spec:
apiVersion: volsync.backube/v1alpha1
kind: ReplicationSource
metadata:
name: overseerr
name: jellyseerr
spec:
sourcePVC: overseerr
sourcePVC: jellyseerr
trigger:
schedule: "15 */8 * * *"
restic:
pruneIntervalDays: 7
repository: overseerr-restic-secret
repository: jellyseerr-restic-secret
copyMethod: Snapshot
accessModes: ["ReadWriteOnce"]
storageClassName: ceph-block
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app overseerr
name: &app jellyseerr
namespace: flux-system
spec:
targetNamespace: media
Expand All @@ -12,8 +12,9 @@ spec:
dependsOn:
- name: volsync
- name: rook-ceph-cluster
- name: cloudnative-pg-cluster
- name: external-secrets-stores
path: ./kubernetes/apps/media/overseerr/app
path: ./kubernetes/apps/media/jellyseerr/app
prune: true
sourceRef:
kind: GitRepository
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/media/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ resources:
- ./autobrr/ks.yaml
- ./bazarr/ks.yaml
- ./cross-seed/ks.yaml
- ./jellyseerr/ks.yaml
- ./omegabrr/ks.yaml
- ./overseerr/ks.yaml
- ./plex/ks.yaml
- ./prowlarr/ks.yaml
- ./qbittorrent/ks.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
template:
engineVersion: v2
data:
OVERSEERR_API_KEY: "{{ .OVERSEERR_API_KEY }}"
OVERSEERR_API_KEY: "{{ .JELLYSEERR_API_KEY }}"
dataFrom:
- extract:
key: overseerr
key: jellyseerr
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: overseerr
- name: jellyseerr
- name: external-secrets-stores
path: ./kubernetes/apps/monitoring/exporters/overseerr-exporter/app
prune: true
Expand Down

0 comments on commit 75770b6

Please sign in to comment.