commit dbd1a99b8f17e7c94535c8bc5a2f23e82e7400fb
parent 6b9cbd3d95759a6f456e414a9967f68c51850902
Author: MTRNord <MTRNord@users.noreply.github.com>
Date: Sat, 30 Aug 2025 16:44:01 +0200
Add matrix org statistics
Diffstat:
5 files changed, 89 insertions(+), 0 deletions(-)
diff --git a/apps/talos_cluster/kustomization.yaml b/apps/talos_cluster/kustomization.yaml
@@ -19,3 +19,4 @@ resources:
- ./mailserver
- ./plane
- ./kimai
+ - ./matrix-org-statistics
diff --git a/apps/talos_cluster/matrix-org-statistics/deployment.yaml b/apps/talos_cluster/matrix-org-statistics/deployment.yaml
@@ -0,0 +1,78 @@
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+ name: m-org-statistics-persistent-storage
+ namespace: statistics
+spec:
+ accessModes:
+ - ReadWriteMany
+ resources:
+ requests:
+ storage: 100M
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: statistics
+ namespace: statistics
+spec:
+ strategy:
+ rollingUpdate:
+ maxSurge: 25%
+ maxUnavailable: 25%
+ type: RollingUpdate
+ selector:
+ matchLabels:
+ app: statistics
+ template:
+ spec:
+ imagePullSecrets:
+ - name: ghcr-pull
+ containers:
+ - name: statistics
+ image: gnuxie/draupnir:v2.6.1
+ imagePullPolicy: IfNotPresent
+ env:
+ - name: CACHE_DIR
+ value: "/data"
+ resources:
+ limits:
+ memory: "1Gi"
+ cpu: "1"
+ requests:
+ memory: "500Mi"
+ cpu: "250m"
+ securityContext:
+ runAsUser: 1000
+ runAsGroup: 1000
+ readOnlyRootFilesystem: true
+ ports:
+ - containerPort: 8080
+ name: http
+ protocol: TCP
+ volumeMounts:
+ - mountPath: /data
+ name: storage
+ - mountPath: /tmp
+ name: tmp
+ livenessProbe:
+ httpGet:
+ path: /
+ port: http
+ scheme: HTTP
+ initialDelaySeconds: 15
+ periodSeconds: 10
+ startupProbe:
+ httpGet:
+ path: /
+ port: http
+ initialDelaySeconds: 15
+ failureThreshold: 30
+ periodSeconds: 10
+ volumes:
+ - name: storage
+ persistentVolumeClaim:
+ claimName: m-org-statistics-persistent-storage
+ - name: tmp
+ emptyDir:
+ sizeLimit: 2048Mi
diff --git a/apps/talos_cluster/matrix-org-statistics/kustomization.yaml b/apps/talos_cluster/matrix-org-statistics/kustomization.yaml
@@ -0,0 +1,5 @@
+apiVersion: kustomize.config.k8s.io/v1beta1
+kind: Kustomization
+namespace: statistics
+resources:
+ - deployment.yaml
diff --git a/apps/talos_cluster/namespaces/kustomization.yaml b/apps/talos_cluster/namespaces/kustomization.yaml
@@ -16,3 +16,4 @@ resources:
- mailserver.yaml
- plane.yaml
- kimai.yaml
+ - statistics.yaml
diff --git a/apps/talos_cluster/namespaces/statistics.yaml b/apps/talos_cluster/namespaces/statistics.yaml
@@ -0,0 +1,4 @@
+apiVersion: v1
+kind: Namespace
+metadata:
+ name: statistics