fava accounting viewer
This commit is contained in:
@@ -0,0 +1,86 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: fava
|
||||
namespace: finance
|
||||
spec:
|
||||
interval: 30m
|
||||
chartRef:
|
||||
kind: OCIRepository
|
||||
name: fava
|
||||
values:
|
||||
controllers:
|
||||
app:
|
||||
initContainers:
|
||||
seed-ledger:
|
||||
image:
|
||||
repository: busybox
|
||||
tag: "1.36"
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
if [ ! -f /bean/main.beancount ]; then
|
||||
printf '1970-01-01 open Assets:Cash\n1970-01-01 open Equity:Opening-Balances\n' > /main.beancount
|
||||
fi
|
||||
containers:
|
||||
app:
|
||||
image:
|
||||
repository: yegle/fava
|
||||
tag: latest
|
||||
env:
|
||||
TZ: Europe/Moscow
|
||||
BEANCOUNT_FILE: /main.beancount
|
||||
probes:
|
||||
liveness:
|
||||
enabled: true
|
||||
readiness:
|
||||
enabled: true
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
memory: 512Mi
|
||||
|
||||
service:
|
||||
app:
|
||||
controller: app
|
||||
ports:
|
||||
http:
|
||||
port: 5000
|
||||
|
||||
ingress:
|
||||
app:
|
||||
className: traefik
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
traefik.ingress.kubernetes.io/router.middlewares: auth-authelia@kubernetescrd
|
||||
hosts:
|
||||
- host: acc.aggtaa.com
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
service:
|
||||
identifier: app
|
||||
port: http
|
||||
tls:
|
||||
- secretName: fava-tls
|
||||
hosts:
|
||||
- acc.aggtaa.com
|
||||
|
||||
persistence:
|
||||
bean:
|
||||
type: persistentVolumeClaim
|
||||
accessMode: ReadWriteOnce
|
||||
size: 1Gi
|
||||
storageClass: longhorn
|
||||
retain: true
|
||||
globalMounts:
|
||||
- path: /bean
|
||||
documents:
|
||||
type: persistentVolumeClaim
|
||||
existingClaim: fava-documents
|
||||
globalMounts:
|
||||
- path: /documents
|
||||
readOnly: true
|
||||
Reference in New Issue
Block a user