--- # 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: v6.1.2@sha256:e82ad6c858cffaa6c11fe035de4802f264c802be83b05b69c3f713c9edc1e281 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