mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
⬆️ bazarr app-template v2
This commit is contained in:
@@ -10,7 +10,7 @@ spec:
|
|||||||
chart:
|
chart:
|
||||||
spec:
|
spec:
|
||||||
chart: app-template
|
chart: app-template
|
||||||
version: 1.5.1
|
version: 2.0.3
|
||||||
sourceRef:
|
sourceRef:
|
||||||
kind: HelmRepository
|
kind: HelmRepository
|
||||||
name: bjw-s
|
name: bjw-s
|
||||||
@@ -32,24 +32,58 @@ spec:
|
|||||||
- name: volsync
|
- name: volsync
|
||||||
namespace: volsync
|
namespace: volsync
|
||||||
values:
|
values:
|
||||||
initContainers:
|
controllers:
|
||||||
01-init-db:
|
main:
|
||||||
image: ghcr.io/auricom/postgres-init:15.4
|
type: statefulset
|
||||||
imagePullPolicy: IfNotPresent
|
annotations:
|
||||||
envFrom: &envFrom
|
reloader.stakater.com/auto: "true"
|
||||||
- secretRef:
|
initContainers:
|
||||||
name: bazarr-secret
|
init-db:
|
||||||
controller:
|
image:
|
||||||
annotations:
|
repository: ghcr.io/auricom/postgres-init
|
||||||
reloader.stakater.com/auto: "true"
|
tag: 15.4@sha256:83e1abf06be5741bdfb8cb53fc03a1ade6e6b5ec7b92a8aac0c69ba5dc7e51f0
|
||||||
image:
|
pullPolicy: IfNotPresent
|
||||||
repository: ghcr.io/onedr0p/bazarr
|
envFrom: &envFrom
|
||||||
tag: 1.3.1@sha256:840242bb1dfb337e5bfa579af039738bbf9948f6f33deecf451ebdd9ca509e31
|
- secretRef:
|
||||||
env:
|
name: atuin-secret
|
||||||
TZ: "${TIMEZONE}"
|
containers:
|
||||||
envFrom:
|
main:
|
||||||
- secretRef:
|
image:
|
||||||
name: bazarr-secret
|
repository: ghcr.io/onedr0p/bazarr
|
||||||
|
tag: 1.3.1@sha256:840242bb1dfb337e5bfa579af039738bbf9948f6f33deecf451ebdd9ca509e31
|
||||||
|
env:
|
||||||
|
TZ: "${TIMEZONE}"
|
||||||
|
envFrom: *envFrom
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 23m
|
||||||
|
memory: 204M
|
||||||
|
limits:
|
||||||
|
memory: 1Gi
|
||||||
|
subcleaner:
|
||||||
|
image:
|
||||||
|
repository: registry.k8s.io/git-sync/git-sync
|
||||||
|
tag: v4.1.0
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
args:
|
||||||
|
- --repo=https://github.com/KBlixt/subcleaner
|
||||||
|
- --branch=master
|
||||||
|
- --wait=86400 # 1 day
|
||||||
|
- --root=/add-ons
|
||||||
|
pod:
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 568
|
||||||
|
runAsGroup: 568
|
||||||
|
fsGroup: 568
|
||||||
|
fsGroupChangePolicy: OnRootMismatch
|
||||||
|
statefulset:
|
||||||
|
volumeClaimTemplates:
|
||||||
|
- name: config
|
||||||
|
accessMode: ReadWriteOnce
|
||||||
|
size: 1Gi
|
||||||
|
storageClass: rook-ceph-block
|
||||||
|
globalMounts:
|
||||||
|
- path: /config
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
ports:
|
ports:
|
||||||
@@ -58,7 +92,7 @@ spec:
|
|||||||
ingress:
|
ingress:
|
||||||
main:
|
main:
|
||||||
enabled: true
|
enabled: true
|
||||||
ingressClassName: "nginx"
|
className: "nginx"
|
||||||
annotations:
|
annotations:
|
||||||
auth.home.arpa/enabled: "true"
|
auth.home.arpa/enabled: "true"
|
||||||
hajimari.io/icon: mdi:subtitles-outline
|
hajimari.io/icon: mdi:subtitles-outline
|
||||||
@@ -66,51 +100,30 @@ spec:
|
|||||||
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
|
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
service:
|
||||||
|
name: main
|
||||||
|
port: http
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- *host
|
- *host
|
||||||
podSecurityContext:
|
|
||||||
runAsUser: 568
|
|
||||||
runAsGroup: 568
|
|
||||||
fsGroup: 568
|
|
||||||
fsGroupChangePolicy: "OnRootMismatch"
|
|
||||||
supplementalGroups:
|
|
||||||
- 100
|
|
||||||
persistence:
|
persistence:
|
||||||
config:
|
|
||||||
enabled: true
|
|
||||||
existingClaim: bazarr-config
|
|
||||||
add-ons:
|
add-ons:
|
||||||
enabled: true
|
enabled: true
|
||||||
type: emptyDir
|
type: emptyDir
|
||||||
mountPath: /add-ons
|
globalMounts:
|
||||||
|
- path: /add-ons
|
||||||
video:
|
video:
|
||||||
enabled: true
|
enabled: true
|
||||||
type: nfs
|
type: nfs
|
||||||
server: "${LOCAL_LAN_TRUENAS}"
|
server: "${LOCAL_LAN_TRUENAS}"
|
||||||
path: /mnt/storage/video
|
path: /mnt/storage/video
|
||||||
mountPath: /mnt/storage/video
|
globalMounts:
|
||||||
|
- path: /mnt/storage/video
|
||||||
scripts:
|
scripts:
|
||||||
enabled: true
|
enabled: true
|
||||||
type: configMap
|
type: configMap
|
||||||
name: bazarr-scripts # overriden by kustomizeconfig
|
name: bazarr-scripts # overriden by kustomizeconfig
|
||||||
defaultMode: 0775
|
defaultMode: 0775
|
||||||
readOnly: true
|
readOnly: true
|
||||||
resources:
|
globalMounts:
|
||||||
requests:
|
- path: /scripts
|
||||||
cpu: 23m
|
|
||||||
memory: 204M
|
|
||||||
limits:
|
|
||||||
memory: 1Gi
|
|
||||||
sidecars:
|
|
||||||
subcleaner:
|
|
||||||
image: registry.k8s.io/git-sync/git-sync:v4.1.0
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
args:
|
|
||||||
- --repo=https://github.com/KBlixt/subcleaner
|
|
||||||
- --branch=master
|
|
||||||
- --wait=86400 # 1 day
|
|
||||||
- --root=/add-ons
|
|
||||||
volumeMounts:
|
|
||||||
- { name: add-ons, mountPath: /add-ons }
|
|
||||||
|
@@ -7,7 +7,6 @@ resources:
|
|||||||
- ./externalsecret.yaml
|
- ./externalsecret.yaml
|
||||||
- ./gatus.yaml
|
- ./gatus.yaml
|
||||||
- ./helmrelease.yaml
|
- ./helmrelease.yaml
|
||||||
- ./volume.yaml
|
|
||||||
- ./volsync.yaml
|
- ./volsync.yaml
|
||||||
configMapGenerator:
|
configMapGenerator:
|
||||||
- name: bazarr-scripts
|
- name: bazarr-scripts
|
||||||
|
@@ -30,7 +30,7 @@ metadata:
|
|||||||
name: bazarr
|
name: bazarr
|
||||||
namespace: default
|
namespace: default
|
||||||
spec:
|
spec:
|
||||||
sourcePVC: bazarr-config
|
sourcePVC: config-bazarr-0
|
||||||
trigger:
|
trigger:
|
||||||
schedule: "0 7 * * *"
|
schedule: "0 7 * * *"
|
||||||
restic:
|
restic:
|
||||||
|
@@ -1,17 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: bazarr-config
|
|
||||||
namespace: default
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: &name bazarr
|
|
||||||
app.kubernetes.io/instance: *name
|
|
||||||
snapshot.home.arpa/enabled: "true"
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 1Gi
|
|
||||||
storageClassName: rook-ceph-block
|
|
Reference in New Issue
Block a user