Files
auricom-home-cluster/kubernetes/apps/default/bazarr/app/helmrelease.yaml
2023-07-31 21:25:28 +02:00

117 lines
2.8 KiB
YAML

---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/helm.toolkit.fluxcd.io/helmrelease_v2beta1.json
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: &app bazarr
namespace: default
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 1.5.1
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
maxHistory: 2
install:
createNamespace: true
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
dependsOn:
- name: rook-ceph-cluster
namespace: rook-ceph
- name: volsync
namespace: volsync
values:
initContainers:
01-init-db:
image: ghcr.io/auricom/postgres-init:15.3
imagePullPolicy: IfNotPresent
envFrom: &envFrom
- secretRef:
name: bazarr-secret
controller:
annotations:
reloader.stakater.com/auto: "true"
image:
repository: ghcr.io/onedr0p/bazarr
tag: 1.2.4@sha256:7441744e7cb5b48c253214d387ea28563e3f171b7870b1f901323970056f76fa
env:
TZ: "${TIMEZONE}"
envFrom:
- secretRef:
name: bazarr-secret
service:
main:
ports:
http:
port: 6767
ingress:
main:
enabled: true
ingressClassName: "nginx"
annotations:
auth.home.arpa/enabled: "true"
hajimari.io/icon: mdi:subtitles-outline
hosts:
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- *host
podSecurityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: "OnRootMismatch"
supplementalGroups:
- 100
persistence:
config:
enabled: true
existingClaim: bazarr-config
add-ons:
enabled: true
type: emptyDir
mountPath: /add-ons
video:
enabled: true
type: nfs
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/video
mountPath: /mnt/storage/video
scripts:
enabled: true
type: configMap
name: bazarr-scripts # overriden by kustomizeconfig
defaultMode: 0775
readOnly: true
resources:
requests:
cpu: 23m
memory: 204M
limits:
memory: 1Gi
sidecars:
subcleaner:
image: registry.k8s.io/git-sync/git-sync:v3.6.9
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 }