Skip to content

Commit

Permalink
feat(Hoarder): Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bidluo committed Jan 17, 2025
1 parent 4638bca commit c7ed28c
Show file tree
Hide file tree
Showing 8 changed files with 152 additions and 1 deletion.
19 changes: 19 additions & 0 deletions apps/home/hoarder/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: hoarder-app
namespace: flux-system
spec:
path: ./apps/home/hoarder/app
targetNamespace: home
interval: 10m
prune: true
sourceRef:
kind: GitRepository
name: flux-system
healthChecks:
- apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
name: hoarder
namespace: home
65 changes: 65 additions & 0 deletions apps/home/hoarder/app/helm-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: hoarder
spec:
interval: 5m
chart:
spec:
chart: app-template
version: 3.6.0
sourceRef:
kind: HelmRepository
name: bjw-s-charts
namespace: flux-system
values:
controllers:
main:
containers:
main:
image:
repository: ghcr.io/hoarder-app/hoarder
tag: 0.21.0
envFrom:
- secretRef:
name: hoarder-secrets
meili:
containers:
main:
image:
repository: getmeili/meilisearch
tag: v1.12.4
envFrom:
- secretRef:
name: hoarder-secrets
service:
main:
controller: main
ports:
http:
port: 3000
meili:
controller: meili
ports:
http:
port: 7700
persistence:
hoarder-data:
existingClaim: hoarder-data
globalMounts:
- path: /data
meili-data:
existingClaim: meili-data
globalMounts:
- path: /meili_data
ingress:
main:
enabled: true
hosts:
- host: "hoard.${PUBLIC_HOSTNAME}"
paths:
- path: /
pathType: Prefix
service:
name: hoarder
port: 3000
11 changes: 11 additions & 0 deletions apps/home/hoarder/app/hoarder-data.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: hoarder-data
spec:
storageClassName: longhorn-backup
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
31 changes: 31 additions & 0 deletions apps/home/hoarder/app/hoarder-secrets.sops.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: v1
data:
CORE_DATABASE_URL: ENC[AES256_GCM,data:1LpFe21EEzPKk5D0CLtwW8xTiKLw+ho+Sh6FqPcGuGBpTw1Ueoo3dScV2Aj066/2LR0AkNPA2QrqSPlUwfGkftk1Rwh5yeGY6vy+NJzqjTykc0xh6pgn0f9WQqwhB6SVqmxOPNWizyo=,iv:8iCEpX24AnN63ZCdw1jRC2FplmL6bZB+/TqjVykVHx0=,tag:v+9VANvjQ5bNk0eZGovwew==,type:str]
NEXTAUTH_URL: ENC[AES256_GCM,data:STZG+7g1Pam2tCLreBEVW/gE5DygIJrkL00Z3Q==,iv:qZ5YM9Zz//zGBF+vkw1lfFDGX5/A2PIe0n0u15r25Iw=,tag:gpMhcHbThpFK6jJ5HzduLA==,type:str]
MEILI_MASTER_KEY: ENC[AES256_GCM,data:ErdBgVQzZkdmUIG0FUwzO7XVkzviygpAJl9q1SAqWyr7vlJ8Us1SM5lmahk1354RsoGzaI36M9sH/DGYwJ/30Q==,iv:XucBflxSwwQX2GfHYXjFDszcunv2wid1PWOTwLhXTgc=,tag:d+PCKNZKjiboRO8dWrFsXA==,type:str]
NEXTAUTH_SECRET: ENC[AES256_GCM,data:5DgPM1Te1WJx8/wV3mbdiOmapZorsT6OFqu61vgLhW5+dVnU46fipx9XbbgnDgGjRYfaAZhvAZLvl50EXCbMHQ==,iv:eVYpwZBGDXxhvcP7iMVpTGx90lNOK7AjTS3UFwtEJiY=,tag:OCIna+X4P9m7Kw5HiYF/Dg==,type:str]
MEILI_ADDR: ENC[AES256_GCM,data:wwOlHM9SXcCUM1HNJn/qXokAhQzvIMyv,iv:xQb5MqPYnc9sZjTTUrU4cBgZbxXdsJ39H578+1oplOM=,tag:1Egpu7l5xLbOiH1cG690XA==,type:str]
DATA_DIR: ENC[AES256_GCM,data:NqVt9UQDs5Q=,iv:Jj4PPPrN7/lMgvcY1/cJJAIsinAIjQgsPz3QcD+s9cg=,tag:N2m1negCpGCjBNaGsDJ/Vg==,type:str]
kind: Secret
metadata:
name: hoarder-secrets
sops:
kms: []
gcp_kms: []
azure_kv: []
hc_vault: []
age:
- recipient: age1mt3e0vdhgcxtcqfv0jhfdeejkk8f48elacyua387nekmnfufsd4qhtwmqn
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA3bCs4QThvS1N1UFlSWmpp
UStxc1pNeU5ETmlIZ1l2Yy9xRkdoSlJmWmpRCkJJd3Jpb0Q4ZFVjblBuMzRNNHJP
ckMrSnJBRE92UTgreFVmRHB5b3NhTlUKLS0tIEoxM2hNVEd1TDJGajhva3EyV05s
eEhOdmhJMFJlbW4zRnJwbUVDdHErYmcKH1yCdGdtSqerlYQN8NCNHSHyph+Mehww
IcIoRV4dMx+r3i2DZ43qsUnodb+u/GNQeU8UjskWANgQAUEcK2bTuA==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2025-01-17T09:01:24Z"
mac: ENC[AES256_GCM,data:8FK48bwsUQCl+UTZ7rQ/7zvuFPC45aTWvxUOOEBBfKj1pFItzbz2ne7cgXDu5MSOy8tqpdBCHrlAvlgtqAKKAR/dkQp0AFNGd4T5ueH0yPzJGy2wAWaowRsP6QBFrqVOtJxwvUKfEk+nnEQX+gnkSyEBl4rbUqRpqTqfb3Y6PTs=,iv:xHErn4gzuq/1/VLFRiG412Gm+sg/BuB93reLXQ5rqrU=,tag:doZ8m1vnjJ7qjVsQvfvZSw==,type:str]
pgp: []
encrypted_regex: ^(data|stringData)$
version: 3.9.3
8 changes: 8 additions & 0 deletions apps/home/hoarder/app/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- helm-release.yaml
- hoarder-data.yaml
- meili-data.yaml
- hoarder-secrets.sops.yaml
11 changes: 11 additions & 0 deletions apps/home/hoarder/app/meili-data.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: meili-data
spec:
storageClassName: longhorn-backup
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
5 changes: 5 additions & 0 deletions apps/home/hoarder/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- app.yaml
3 changes: 2 additions & 1 deletion apps/home/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ kind: Kustomization
resources:
- namespace.yaml
- home-assistant
- adguard
- hoarder
- adguard

0 comments on commit c7ed28c

Please sign in to comment.