99 lines
2.5 KiB
YAML
99 lines
2.5 KiB
YAML
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: ampache
|
|
spec:
|
|
interval: 5m
|
|
chart:
|
|
spec:
|
|
chart: app-template
|
|
version: 3.5.1
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: bjws-charts
|
|
namespace: flux-system
|
|
|
|
values:
|
|
controllers:
|
|
ampache:
|
|
containers:
|
|
app:
|
|
image:
|
|
repository: ampache/ampache
|
|
tag: nosql7.0.1
|
|
|
|
env:
|
|
DISABLE_INOTIFYWAIT_CLEAN: 0
|
|
|
|
probes:
|
|
liveness: &probes
|
|
enabled: true
|
|
custom: true
|
|
spec:
|
|
httpGet:
|
|
path: /
|
|
port: &port 80
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
failureThreshold: 3
|
|
readiness: *probes
|
|
startup:
|
|
enabled: true
|
|
spec:
|
|
failureThreshold: 30
|
|
periodSeconds: 10
|
|
|
|
# securityContext:
|
|
# allowPrivilegeEscalation: false
|
|
# readOnlyRootFilesystem: true
|
|
# capabilities: { drop: ["ALL"] }
|
|
|
|
defaultPodOptions:
|
|
securityContext:
|
|
# runAsNonRoot: true
|
|
runAsUser: 10000
|
|
runAsGroup: 10000
|
|
fsGroup: 10000
|
|
fsGroupChangePolicy: OnRootMismatch
|
|
|
|
service:
|
|
app:
|
|
controller: ampache
|
|
ports:
|
|
http:
|
|
port: *port
|
|
|
|
ingress:
|
|
app:
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: letsencrypt-production
|
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
|
#className: external
|
|
hosts:
|
|
- host: "ampache.${SECRET_NEW_DOMAIN}"
|
|
paths:
|
|
- path: /
|
|
service:
|
|
identifier: app
|
|
port: http
|
|
|
|
persistence:
|
|
config:
|
|
existingClaim: ampache
|
|
globalMounts:
|
|
- path: /var/www/config
|
|
|
|
logs:
|
|
type: emptyDir
|
|
globalMounts:
|
|
- path: /var/log/ampache
|
|
|
|
music:
|
|
type: hostPath
|
|
hostPath: /mnt/MainPool/Media/Media
|
|
globalMounts:
|
|
- path: /media
|
|
readOnly: true
|