diff --git a/k8s/apps/videohosting/templates/configs-bazarr.yaml b/k8s/apps/videohosting/templates/configs-bazarr.yaml
new file mode 100644
index 0000000..f0426a6
--- /dev/null
+++ b/k8s/apps/videohosting/templates/configs-bazarr.yaml
@@ -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
\ No newline at end of file
diff --git a/k8s/apps/videohosting/templates/configs-openvpn.yaml b/k8s/apps/videohosting/templates/configs-openvpn.yaml
deleted file mode 100644
index ab99d41..0000000
--- a/k8s/apps/videohosting/templates/configs-openvpn.yaml
+++ /dev/null
@@ -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"
\ No newline at end of file
diff --git a/k8s/apps/videohosting/templates/sts-services.yaml b/k8s/apps/videohosting/templates/sts-services.yaml
index 9ef930b..c94dc3a 100644
--- a/k8s/apps/videohosting/templates/sts-services.yaml
+++ b/k8s/apps/videohosting/templates/sts-services.yaml
@@ -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}}
diff --git a/k8s/apps/videohosting/values.yaml b/k8s/apps/videohosting/values.yaml
index 6b37dd6..0ec17b8 100644
--- a/k8s/apps/videohosting/values.yaml
+++ b/k8s/apps/videohosting/values.yaml
@@ -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: |-
- Sosnovsky Bazarr
- External
- DisabledForLocalAddresses
-
sonarr:
repo: lscr.io/linuxserver/sonarr
tag: "4.0.1.929-ls225"
@@ -141,6 +117,24 @@ arrs:
DisabledForLocalAddresses
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