From 24dfcf68150cecdab54dd6cccd6f5f5220435032 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Thu, 7 Sep 2023 18:23:40 -0400 Subject: [PATCH] feat: add trilium --- cluster/apps/default/kustomization.yaml | 3 +- .../apps/default/trilium/helm-release.yaml | 50 +++++++++++++++++++ .../apps/default/trilium/kustomization.yaml | 4 ++ 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 cluster/apps/default/trilium/helm-release.yaml create mode 100644 cluster/apps/default/trilium/kustomization.yaml diff --git a/cluster/apps/default/kustomization.yaml b/cluster/apps/default/kustomization.yaml index b25a042..ca3f00a 100644 --- a/cluster/apps/default/kustomization.yaml +++ b/cluster/apps/default/kustomization.yaml @@ -4,6 +4,7 @@ resources: - ./fireflyiii - ./cdn - ./gitea -- ./dendron +#- ./dendron +- ./trilium #- ./whoami #- ./msrewards \ No newline at end of file diff --git a/cluster/apps/default/trilium/helm-release.yaml b/cluster/apps/default/trilium/helm-release.yaml new file mode 100644 index 0000000..7e27a2c --- /dev/null +++ b/cluster/apps/default/trilium/helm-release.yaml @@ -0,0 +1,50 @@ +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: trilium + namespace: default +spec: + interval: 5m + chart: + spec: + chart: app-template + version: 1.3.x + sourceRef: + kind: HelmRepository + name: bjws-charts + namespace: flux-system + + values: + image: + repository: zadam/trilium + tag: 0.61-latest + + service: + main: + ports: + http: + port: 8080 + + ingress: + main: + enabled: true + annotations: + cert-manager.io/cluster-issuer: letsencrypt-production + traefik.ingress.kubernetes.io/router.entrypoints: websecure + #traefik.ingress.kubernetes.io/router.middlewares: traefik-authentik@kubernetescrd + hosts: + - host: &host "notes.${SECRET_NEW_DOMAIN}" + paths: + - path: / + pathType: Prefix + tls: + - hosts: + - *host + secretName: wildcard-main-tls + + persistence: + storage: + enabled: true + type: hostPath + hostPath: /mnt/MainPool/Kubernetes/trilium + mountPath: /home/node/trilium-data \ No newline at end of file diff --git a/cluster/apps/default/trilium/kustomization.yaml b/cluster/apps/default/trilium/kustomization.yaml new file mode 100644 index 0000000..ea3145d --- /dev/null +++ b/cluster/apps/default/trilium/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- ./helm-release.yaml \ No newline at end of file