Files
auricom-home-cluster/kubernetes/apps/default/lychee/app/helmrelease.yaml
2024-10-08 20:36:30 +02:00

108 lines
2.9 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 lychee
namespace: default
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 3.5.1
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
maxHistory: 2
install:
createNamespace: true
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
strategy: rollback
retries: 3
uninstall:
keepHistory: false
values:
controllers:
lychee:
annotations:
reloader.stakater.com/auto: "true"
initContainers:
init-db:
image:
repository: ghcr.io/onedr0p/postgres-init
tag: 16
envFrom: &envFrom
- secretRef:
name: lychee-secret
containers:
app:
image:
repository: lycheeorg/lychee-laravel
tag: v5.5.1@sha256:7ca3f838988ea521d4f287ccb01598fb4d89b90ddd758aa8f6b6a2339da5d85d
env:
TIMEZONE: ${TIMEZONE}
APP_NAME: Lychee
APP_URL: https://lychee.${SECRET_EXTERNAL_DOMAIN}
DB_CONNECTION: pgsql
PHP_TZ: ${TIMEZONE}
REDIS_HOST: dragonfly.database.svc.cluster.local.
REDIS_PORT: 6379
TRUSTED_PROXIES: "*"
envFrom: *envFrom
resources:
requests:
cpu: 100m
memory: 256Mi
service:
app:
controller: *app
ports:
http:
port: 80
ingress:
app:
enabled: true
className: nginx
annotations:
external-dns.alpha.kubernetes.io/enabled: "true"
external-dns.alpha.kubernetes.io/target: services.${SECRET_DOMAIN}.
hajimari.io/icon: mdi:camera
gethomepage.dev/enabled: "true"
gethomepage.dev/name: Lychee
gethomepage.dev/description: Photo-management tool.
gethomepage.dev/group: Media
gethomepage.dev/icon: lychee.png
gethomepage.dev/pod-selector: >-
app in (
lychee
)
hosts:
- host: &host "{{ .Release.Name }}.${SECRET_EXTERNAL_DOMAIN}"
paths:
- path: /
service:
identifier: app
port: http
tls:
- hosts:
- *host
persistence:
config:
enabled: true
existingClaim: *app
globalMounts:
- path: /uploads
photo:
enabled: true
type: nfs
server: 192.168.9.10
path: /var/mnt/vol1/photo
globalMounts:
- path: /mnt/storage/photo