Files
auricom-home-cluster/kubernetes/apps/default/ghostfolio/app/helmrelease.yaml

80 lines
2.0 KiB
YAML

---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: &app ghostfolio
namespace: default
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 2.5.0
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: ghostfolio-redis
values:
controllers:
main:
strategy: RollingUpdate
annotations:
reloader.stakater.com/auto: "true"
initContainers:
init-db:
image:
repository: ghcr.io/onedr0p/postgres-init
tag: 16
envFrom: &envFrom
- secretRef:
name: ghostfolio-secret
containers:
main:
image:
repository: docker.io/ghostfolio/ghostfolio
tag: 2.44.0@sha256:a5f541aa56ceeba8c2755b2b794c5b3a1bf8bae9bf7694576a32f80e05cc8565
env:
NODE_ENV: production
REDIS_HOST: ghostfolio-redis.default.svc.cluster.local
REDIS_PORT: 6379
envFrom: *envFrom
resources:
requests:
cpu: 100m
memory: 256Mi
service:
main:
ports:
http:
port: 3333
ingress:
main:
enabled: true
className: "nginx"
annotations:
hajimari.io/icon: mdi:cash-multiple
hosts:
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
paths:
- path: /
service:
name: main
port: http
tls:
- hosts:
- *host