using bazarr as a ervice

This commit is contained in:
Ariel Sosnovsky committed 2024-02-16 12:05:27 -05:00
1 parent fb0fd9a001
commit f96188e784
4 files changed
+61 -44

No files matched your search

@@ -0,0 +1,39 @@
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: "bazarr-db-creds"
spec:
refreshInterval: 24h
secretStoreRef:
kind: ClusterSecretStore
name: chart-db-creds
target:
name: "bazarr-config"
creationPolicy: Owner
template:
engineVersion: v2
data:
POSTGRES_ENABLED: "true"
POSTGRES_HOST: "{{ `{{.host}}` }}"
POSTGRES_PORT: "{{ `{{.port}}` }}"
POSTGRES_DATABASE: "{{ `{{.username}}` }}"
POSTGRES_USERNAME: "{{ `{{.username}}` }}"
POSTGRES_PASSWORD: "{{ `{{.password}}` }}"
data:
- remoteRef:
key: password.pg.{{$k}}
property: username
secretKey: username
- remoteRef:
key: password.pg.{{$k}}
property: password
secretKey: password
- remoteRef:
key: password.pg.{{$k}}
property: port
secretKey: port
- remoteRef:
key: password.pg.{{$k}}
property: host
secretKey: host
@@ -1,20 +0,0 @@
---
apiVersion: v1
kind: Secret
metadata:
name: openvpn-creds
type: Opaque
data:
_placeholder: ""
---
apiVersion: v1
kind: ConfigMap
metadata:
name: openvpn-route-script
data:
route-override.sh: |-
#!/bin/sh
VPN_GATEWAY=$(route -n | awk 'NR==3' | awk '{ print $2 }')
ip route del 0.0.0.0/1 via $VPN_GATEWAY
echo "Route Updated"
@@ -93,6 +93,10 @@ spec:
envFrom:
- configMapRef:
name: {{$k}}-envs
{{ if $v.envFrom }}
{{ range $envFrom := $v.envFrom }}
- {{ $envFrom | toJson }}
{{ end }}
resources:
{{- $v.podResources | toYaml | nindent 12 }}
{{ if $v.ports}}
+18 -24
View File
@@ -26,30 +26,6 @@ jellyfin:
memory: "4Gi"
arrs:
bazarr:
repo: lscr.io/linuxserver/bazarr
tag: "v1.4.1-ls238"
port: 6767
migrateDbFromSqllite:
enabled: false
claimName: config-sonarr-0
usePostgres: true
podResources:
limits:
memory: "8Gi"
requests:
cpu: 250m
memory: "500M"
configVolumesResources:
requests:
storage: 10Gi
limits:
storage: 100Gi
extraConfigXml: |-
<InstanceName>Sosnovsky Bazarr</InstanceName>
<AuthenticationMethod>External</AuthenticationMethod>
<AuthenticationType>DisabledForLocalAddresses</AuthenticationType>
sonarr:
repo: lscr.io/linuxserver/sonarr
tag: "4.0.1.929-ls225"
@@ -141,6 +117,24 @@ arrs:
<AuthenticationType>DisabledForLocalAddresses</AuthenticationType>
services:
bazarr:
kind: StatefulSet
repo: lscr.io/linuxserver/bazarr
tag: "v1.4.1-ls238"
ports:
web:
http: 6767
health: {}
envFrom:
- secretRef:
name: bazarr-db-creds
podResources:
limits:
memory: "8Gi"
requests:
cpu: 250m
memory: "500M"
jellyplex:
kind: Deployment
disableSVC: true