mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
125 lines
3.4 KiB
YAML
125 lines
3.4 KiB
YAML
---
|
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: &app bazarr
|
|
namespace: default
|
|
spec:
|
|
interval: 1h
|
|
chartRef:
|
|
kind: OCIRepository
|
|
name: app-template
|
|
install:
|
|
remediation:
|
|
retries: 3
|
|
upgrade:
|
|
cleanupOnFail: true
|
|
remediation:
|
|
strategy: rollback
|
|
retries: 3
|
|
dependsOn:
|
|
- name: rook-ceph-cluster
|
|
namespace: rook-ceph
|
|
- name: volsync
|
|
namespace: volsync
|
|
values:
|
|
defaultPodOptions:
|
|
securityContext:
|
|
runAsUser: 568
|
|
runAsGroup: 568
|
|
fsGroup: 568
|
|
fsGroupChangePolicy: OnRootMismatch
|
|
controllers:
|
|
bazarr:
|
|
annotations:
|
|
reloader.stakater.com/auto: "true"
|
|
secret.reloader.stakater.com/reload: bazarr-db-secret
|
|
containers:
|
|
app:
|
|
image:
|
|
repository: ghcr.io/home-operations/bazarr
|
|
tag: 1.5.2@sha256:dbc87e5ce9e199709188e152e82b3ff5d33e6521a1b3d61e465aa75b4b739e7f
|
|
env:
|
|
TZ: "${TIMEZONE}"
|
|
envFrom:
|
|
- secretRef:
|
|
name: bazarr-secret
|
|
- secretRef:
|
|
name: bazarr-db-secret
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
readOnlyRootFilesystem: true
|
|
capabilities: { drop: [ALL] }
|
|
probes:
|
|
liveness: &probes
|
|
enabled: true
|
|
custom: true
|
|
spec:
|
|
httpGet:
|
|
path: /ping
|
|
port: &port 6767
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
failureThreshold: 3
|
|
readiness: *probes
|
|
resources:
|
|
requests:
|
|
cpu: 23m
|
|
memory: 300Mi
|
|
limits:
|
|
memory: 500Mi
|
|
subcleaner:
|
|
image:
|
|
repository: registry.k8s.io/git-sync/git-sync
|
|
tag: v4.5.0@sha256:0e64aedb0d0ae0a3bab880349a5109b2a31891d646dd61e433ca36ed220dff1f
|
|
pullPolicy: IfNotPresent
|
|
args:
|
|
- --repo=https://github.com/KBlixt/subcleaner
|
|
- --branch=master
|
|
- --wait=86400 # 1 day
|
|
- --root=/add-ons
|
|
service:
|
|
app:
|
|
controller: *app
|
|
ports:
|
|
http:
|
|
port: *port
|
|
route:
|
|
app:
|
|
hostnames: ["{{ .Release.Name }}.${SECRET_EXTERNAL_DOMAIN}"]
|
|
parentRefs:
|
|
- name: internal
|
|
namespace: network
|
|
sectionName: https
|
|
rules:
|
|
- backendRefs:
|
|
- name: *app
|
|
port: *port
|
|
persistence:
|
|
config:
|
|
enabled: true
|
|
existingClaim: *app
|
|
globalMounts:
|
|
- path: /config
|
|
add-ons:
|
|
enabled: true
|
|
type: emptyDir
|
|
globalMounts:
|
|
- path: /add-ons
|
|
video:
|
|
enabled: true
|
|
type: nfs
|
|
server: 192.168.9.10
|
|
path: /var/mnt/vol1/video
|
|
globalMounts:
|
|
- path: /mnt/storage/video
|
|
scripts:
|
|
enabled: true
|
|
type: configMap
|
|
name: bazarr-scripts # overriden by kustomizeconfig
|
|
defaultMode: 0775 # trunk-ignore(yamllint/octal-values)
|
|
globalMounts:
|
|
- path: /scripts
|