cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

commit 8b549afc4df85430d7964c1ea16599d42ab6f423
parent 6034bd8db66bccfa636b94b3b81e685ea3fbb695
Author: MTRNord <mtrnord1@gmail.com>
Date:   Mon, 17 Mar 2025 16:02:47 +0100

Install actualbudget-server

Diffstat:
Mapps/2024_cluster/kustomization.yaml | 1+
Aapps/2024_cluster/namespaces/actualbudget-server.yaml | 4++++
Mapps/2024_cluster/namespaces/kustomization.yaml | 1+
Aapps/base/actualbudget-server/kustomization.yaml | 5+++++
Aapps/base/actualbudget-server/release.yaml | 96+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 107 insertions(+), 0 deletions(-)

diff --git a/apps/2024_cluster/kustomization.yaml b/apps/2024_cluster/kustomization.yaml @@ -44,3 +44,4 @@ resources: #- ../base/rundeck - ../base/matrix/networkpolicies - ../base/hubzilla + - ../base/actualbudget-server diff --git a/apps/2024_cluster/namespaces/actualbudget-server.yaml b/apps/2024_cluster/namespaces/actualbudget-server.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: actualbudget-server diff --git a/apps/2024_cluster/namespaces/kustomization.yaml b/apps/2024_cluster/namespaces/kustomization.yaml @@ -31,3 +31,4 @@ resources: - vault.yaml - rundeck.yaml - hubzilla.yaml + - actualbudget-server.yaml diff --git a/apps/base/actualbudget-server/kustomization.yaml b/apps/base/actualbudget-server/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: actualbudget-server +resources: + - release.yaml diff --git a/apps/base/actualbudget-server/release.yaml b/apps/base/actualbudget-server/release.yaml @@ -0,0 +1,96 @@ +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: actualbudget-server +spec: + resources: + requests: + storage: 1Gi + storageClassName: ceph-filesystem + volumeMode: Filesystem + accessModes: + - ReadWriteMany +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: actualbudget-server + namespace: actualbudget-server +spec: + replicas: 1 + selector: + matchLabels: + app: actualbudget-server + template: + metadata: + labels: + app: actualbudget-server + spec: + containers: + - name: actualbudget-server + image: ghcr.io/actualbudget/actual:25.3.1 + imagePullPolicy: IfNotPresent + resources: + limits: + cpu: 100m + memory: 128Mi + requests: + cpu: 100m + memory: 128Mi + #env: + # - name: ACTUAL_HOSTNAME + # value: "budget.midnightthoughts.space" + ports: + - containerPort: 5006 + livenessProbe: + httpGet: + path: / + port: 5006 + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 5 + successThreshold: 1 + failureThreshold: 3 + readinessProbe: + httpGet: + path: / + port: 5006 + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 5 + successThreshold: 1 + failureThreshold: 3 + +--- +apiVersion: v1 +kind: Service +metadata: + name: actualbudget-server-service + namespace: actualbudget-server +spec: + selector: + app: actualbudget-server + ports: + - protocol: TCP + port: 5006 + targetPort: 5006 +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: actualbudget-server + namespace: actualbudget-server +spec: + parentRefs: + - name: envoy-gateway + namespace: envoy-gateway + hostnames: + - budget.midnightthoughts.space + rules: + - backendRefs: + - name: actualbudget-server-service + port: 5006 + timeouts: + request: 240s + backendRequest: 0s