cluster

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

commit 43972b55020f1a6cd2dc1104adbafbc792e6f687
parent 8dbb1109153dab603d7db441613cfa3bcb738f94
Author: MTRNord <MTRNord@users.noreply.github.com>
Date:   Fri,  5 Sep 2025 20:36:12 +0200

Fix liveness and readiness probes

Diffstat:
Mapps/talos_cluster/continuwuity/deployment.yaml | 24++++++++++++------------
Mapps/talos_cluster/matrix-org-statistics/deployment.yaml | 86++++++++++++++++++++++++++++++++++++++++----------------------------------------
2 files changed, 55 insertions(+), 55 deletions(-)

diff --git a/apps/talos_cluster/continuwuity/deployment.yaml b/apps/talos_cluster/continuwuity/deployment.yaml @@ -36,18 +36,18 @@ spec: env: - name: CONTINUWUITY_CONFIG value: /etc/conduwuit/conduwuit.toml - livenessProbe: - httpGet: - path: /_matrix/client/versions - port: 8448 - initialDelaySeconds: 10 - timeoutSeconds: 5 - readinessProbe: - httpGet: - path: /_matrix/client/versions - port: 8448 - initialDelaySeconds: 10 - timeoutSeconds: 5 + livenessProbe: + httpGet: + path: /_matrix/client/versions + port: 8448 + initialDelaySeconds: 10 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /_matrix/client/versions + port: 8448 + initialDelaySeconds: 10 + timeoutSeconds: 5 # Mount the continuwuity config which is stored in the continuwuity-config secret at the config path and should go to /config.yaml volumes: - name: continuwuity-config diff --git a/apps/talos_cluster/matrix-org-statistics/deployment.yaml b/apps/talos_cluster/matrix-org-statistics/deployment.yaml @@ -36,64 +36,64 @@ spec: image: ghcr.io/mtrnord/matrix-org-statistics:latest imagePullPolicy: Always env: - - name: CACHE_DIR - value: "/data" + - name: CACHE_DIR + value: "/data" resources: - limits: - memory: "1Gi" - cpu: "1" - requests: - memory: "500Mi" - cpu: "250m" + limits: + memory: "1Gi" + cpu: "1" + requests: + memory: "500Mi" + cpu: "250m" securityContext: - runAsUser: 999 - runAsGroup: 999 - readOnlyRootFilesystem: false + runAsUser: 999 + runAsGroup: 999 + readOnlyRootFilesystem: false ports: - - containerPort: 8080 - name: http - protocol: TCP + - containerPort: 8080 + name: http + protocol: TCP volumeMounts: - - mountPath: /data - name: storage - - mountPath: /tmp - name: tmp - - mountPath: /var/log/shiny-server/ - name: tmp-log - - mountPath: /var/lib/shiny-server/bookmarks - name: tmp-bookmarks - - mountPath: /home/shiny/.cache - name: tmp-cache + - mountPath: /data + name: storage + - mountPath: /tmp + name: tmp + - mountPath: /var/log/shiny-server/ + name: tmp-log + - mountPath: /var/lib/shiny-server/bookmarks + name: tmp-bookmarks + - mountPath: /home/shiny/.cache + name: tmp-cache livenessProbe: - httpGet: - path: / - port: http - scheme: HTTP - initialDelaySeconds: 15 - periodSeconds: 10 + httpGet: + path: / + port: http + scheme: HTTP + initialDelaySeconds: 15 + periodSeconds: 10 startupProbe: - httpGet: - path: / - port: http - initialDelaySeconds: 15 - failureThreshold: 30 - periodSeconds: 10 + httpGet: + path: / + port: http + initialDelaySeconds: 15 + failureThreshold: 30 + periodSeconds: 10 volumes: - name: storage persistentVolumeClaim: - claimName: m-org-statistics-persistent-storage + claimName: m-org-statistics-persistent-storage - name: tmp emptyDir: - sizeLimit: 2048Mi + sizeLimit: 2048Mi - name: tmp-log emptyDir: - sizeLimit: 2048Mi + sizeLimit: 2048Mi - name: tmp-bookmarks emptyDir: - sizeLimit: 2048Mi + sizeLimit: 2048Mi - name: tmp-cache emptyDir: - sizeLimit: 2048Mi + sizeLimit: 2048Mi --- apiVersion: v1 kind: Service @@ -124,5 +124,5 @@ spec: - morg-statistics.midnightthoughts.space rules: - backendRefs: - - name: morg-statistics - port: 8080 + - name: morg-statistics + port: 8080