mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
🚀 homebox
This commit is contained in:
22
kubernetes/apps/default/homebox/app/gatus.yaml
Normal file
22
kubernetes/apps/default/homebox/app/gatus.yaml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: homebox-gatus-ep
|
||||||
|
namespace: default
|
||||||
|
labels:
|
||||||
|
gatus.io/enabled: "true"
|
||||||
|
data:
|
||||||
|
config.yaml: |
|
||||||
|
endpoints:
|
||||||
|
- name: homebox
|
||||||
|
group: internal
|
||||||
|
url: https://homebox.${SECRET_CLUSTER_DOMAIN}
|
||||||
|
interval: 1m
|
||||||
|
client:
|
||||||
|
insecure: true
|
||||||
|
conditions:
|
||||||
|
- "[STATUS] == 200"
|
||||||
|
alerts:
|
||||||
|
- type: pushover
|
||||||
|
|
81
kubernetes/apps/default/homebox/app/helmrelease.yaml
Normal file
81
kubernetes/apps/default/homebox/app/helmrelease.yaml
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
---
|
||||||
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta1.json
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: &app homebox
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
interval: 30m
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: app-template
|
||||||
|
version: 2.0.3
|
||||||
|
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
|
||||||
|
values:
|
||||||
|
controllers:
|
||||||
|
main:
|
||||||
|
type: statefulset
|
||||||
|
containers:
|
||||||
|
main:
|
||||||
|
image:
|
||||||
|
repository: ghcr.io/hay-kot/homebox
|
||||||
|
tag: v0.10.1
|
||||||
|
env:
|
||||||
|
TZ: "${TIMEZONE}"
|
||||||
|
HBOX_LOG_LEVEL: info
|
||||||
|
HBOX_LOG_FORMAT: text
|
||||||
|
HBOX_MEB_MAX_UPLOAD_SIZE: 10
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 52M
|
||||||
|
limits:
|
||||||
|
memory: 256M
|
||||||
|
statefulset:
|
||||||
|
volumeClaimTemplates:
|
||||||
|
- name: config
|
||||||
|
accessMode: ReadWriteOnce
|
||||||
|
size: 1Gi
|
||||||
|
storageClass: rook-ceph-block
|
||||||
|
globalMounts:
|
||||||
|
- path: /config
|
||||||
|
service:
|
||||||
|
main:
|
||||||
|
ports:
|
||||||
|
http:
|
||||||
|
port: 7745
|
||||||
|
ingress:
|
||||||
|
main:
|
||||||
|
enabled: true
|
||||||
|
className: nginx
|
||||||
|
annotations:
|
||||||
|
hajimari.io/enable: "true"
|
||||||
|
hajimari.io/appName: *app
|
||||||
|
hajimari.io/info: "Inventory management system"
|
||||||
|
hajimari.io/icon: "devices"
|
||||||
|
hajimari.io/targetBlank: "true"
|
||||||
|
hosts:
|
||||||
|
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
|
||||||
|
paths:
|
||||||
|
- path: "/"
|
||||||
|
pathType: "Prefix"
|
||||||
|
service:
|
||||||
|
name: main
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- *host
|
9
kubernetes/apps/default/homebox/app/kustomization.yaml
Normal file
9
kubernetes/apps/default/homebox/app/kustomization.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/kustomization.json
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: default
|
||||||
|
resources:
|
||||||
|
- ./gatus.yaml
|
||||||
|
- ./helmrelease.yaml
|
||||||
|
- ./volsync.yaml
|
45
kubernetes/apps/default/homebox/app/volsync.yaml
Normal file
45
kubernetes/apps/default/homebox/app/volsync.yaml
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
---
|
||||||
|
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/external-secrets.io/externalsecret_v1beta1.json
|
||||||
|
apiVersion: external-secrets.io/v1beta1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: homebox-restic
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
secretStoreRef:
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
name: onepassword-connect
|
||||||
|
target:
|
||||||
|
name: homebox-restic-secret
|
||||||
|
creationPolicy: Owner
|
||||||
|
template:
|
||||||
|
engineVersion: v2
|
||||||
|
data:
|
||||||
|
RESTIC_REPOSITORY: '{{ .REPOSITORY_TEMPLATE }}/homebox'
|
||||||
|
RESTIC_PASSWORD: '{{ .RESTIC_PASSWORD }}'
|
||||||
|
AWS_ACCESS_KEY_ID: '{{ .AWS_ACCESS_KEY_ID }}'
|
||||||
|
AWS_SECRET_ACCESS_KEY: '{{ .AWS_SECRET_ACCESS_KEY }}'
|
||||||
|
dataFrom:
|
||||||
|
- extract:
|
||||||
|
key: volsync-restic-template
|
||||||
|
---
|
||||||
|
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/volsync.backube/replicationsource_v1alpha1.json
|
||||||
|
apiVersion: volsync.backube/v1alpha1
|
||||||
|
kind: ReplicationSource
|
||||||
|
metadata:
|
||||||
|
name: homebox
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
sourcePVC: config-homebox-0
|
||||||
|
trigger:
|
||||||
|
schedule: "0 7 * * *"
|
||||||
|
restic:
|
||||||
|
copyMethod: Snapshot
|
||||||
|
pruneIntervalDays: 7
|
||||||
|
repository: homebox-restic-secret
|
||||||
|
cacheCapacity: 10Gi
|
||||||
|
volumeSnapshotClassName: csi-ceph-blockpool
|
||||||
|
storageClassName: rook-ceph-block
|
||||||
|
retain:
|
||||||
|
daily: 7
|
||||||
|
within: 3d
|
23
kubernetes/apps/default/homebox/ks.yaml
Normal file
23
kubernetes/apps/default/homebox/ks.yaml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: cluster-apps-homebox
|
||||||
|
namespace: flux-system
|
||||||
|
labels:
|
||||||
|
substitution.flux.home.arpa/enabled: "true"
|
||||||
|
spec:
|
||||||
|
path: ./kubernetes/apps/default/homebox/app
|
||||||
|
prune: true
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: home-ops-kubernetes
|
||||||
|
healthChecks:
|
||||||
|
- apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
name: homebox
|
||||||
|
namespace: default
|
||||||
|
interval: 30m
|
||||||
|
retryInterval: 1m
|
||||||
|
timeout: 3m
|
@@ -18,6 +18,7 @@ resources:
|
|||||||
- ./ghostfolio/ks.yaml
|
- ./ghostfolio/ks.yaml
|
||||||
- ./hajimari/ks.yaml
|
- ./hajimari/ks.yaml
|
||||||
- ./home-assistant/ks.yaml
|
- ./home-assistant/ks.yaml
|
||||||
|
- ./homebox/ks.yaml
|
||||||
- ./immich/ks.yaml
|
- ./immich/ks.yaml
|
||||||
- ./invidious/ks.yaml
|
- ./invidious/ks.yaml
|
||||||
- ./jellyfin/ks.yaml
|
- ./jellyfin/ks.yaml
|
||||||
|
Reference in New Issue
Block a user