cluster

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

commit 1557dee7849e79cc238f4cd40738dbde239a3a47
parent 1d0343b64ef4c3ca3e1477493bb0282e42260a33
Author: MTRNord <MTRNord@users.noreply.github.com>
Date:   Sun, 14 Sep 2025 17:43:53 +0200

Fix metrics

Diffstat:
Mapps/talos_cluster/connectivity-tester/service.yaml | 3+++
Mapps/talos_cluster/connectivity-tester/staging_deployment.yaml | 179++++++++++++++++++++++++++++++++++++++++---------------------------------------
2 files changed, 94 insertions(+), 88 deletions(-)

diff --git a/apps/talos_cluster/connectivity-tester/service.yaml b/apps/talos_cluster/connectivity-tester/service.yaml @@ -18,6 +18,9 @@ spec: - path: value: /api-docs type: PathPrefix + - path: + value: /metrics + type: PathPrefix backendRefs: - name: connectivity-tester-api-primary port: 8080 diff --git a/apps/talos_cluster/connectivity-tester/staging_deployment.yaml b/apps/talos_cluster/connectivity-tester/staging_deployment.yaml @@ -21,18 +21,18 @@ spec: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: - matchExpressions: - - key: app - operator: In - values: - - connectivity-tester-stage + matchExpressions: + - key: app + operator: In + values: + - connectivity-tester-stage topologyKey: "kubernetes.io/hostname" - labelSelector: - matchExpressions: - - key: app - operator: In - values: - - connectivity-tester-api + matchExpressions: + - key: app + operator: In + values: + - connectivity-tester-api topologyKey: "kubernetes.io/hostname" imagePullSecrets: - name: ghcr-pull @@ -43,91 +43,91 @@ spec: image: ghcr.io/mtrnord/rust-federation-tester:main imagePullPolicy: Always env: - - name: RFT_DEBUG - value: "1" - - name: RFT_TRACE_SPANS - value: "close" + - name: RFT_DEBUG + value: "1" + - name: RFT_TRACE_SPANS + value: "close" resources: - limits: {} - requests: - memory: "344Mi" - cpu: "252m" + limits: {} + requests: + memory: "344Mi" + cpu: "252m" securityContext: - runAsUser: 1000 - runAsGroup: 1000 - readOnlyRootFilesystem: true + runAsUser: 1000 + runAsGroup: 1000 + readOnlyRootFilesystem: true volumeMounts: - - name: api-config - mountPath: /app/config.yaml - subPath: config.yaml - readOnly: true + - name: api-config + mountPath: /app/config.yaml + subPath: config.yaml + readOnly: true ports: - - containerPort: 8080 - name: api - protocol: TCP + - containerPort: 8080 + name: api + protocol: TCP readinessProbe: - httpGet: - path: /healthz - port: api - scheme: HTTP + httpGet: + path: /healthz + port: api + scheme: HTTP livenessProbe: - httpGet: - path: /healthz - port: api - scheme: HTTP + httpGet: + path: /healthz + port: api + scheme: HTTP startupProbe: - httpGet: - path: /healthz - port: api + httpGet: + path: /healthz + port: api - name: connection-checker-ui image: ghcr.io/mtrnord/matrix-connection-tester-ui:main imagePullPolicy: Always lifecycle: - preStop: - exec: - command: - - sleep - - "10" + preStop: + exec: + command: + - sleep + - "10" resources: - limits: {} - requests: - memory: "344Mi" - cpu: "252m" + limits: {} + requests: + memory: "344Mi" + cpu: "252m" ports: - - containerPort: 3000 - name: web - protocol: TCP + - containerPort: 3000 + name: web + protocol: TCP volumeMounts: - - name: configs - mountPath: "/usr/share/nginx/html/config.json" - subPath: config.json - readOnly: true - - mountPath: /tmp - name: tmp + - name: configs + mountPath: "/usr/share/nginx/html/config.json" + subPath: config.json + readOnly: true + - mountPath: /tmp + name: tmp livenessProbe: - httpGet: - path: / - port: web - scheme: HTTP + httpGet: + path: / + port: web + scheme: HTTP readinessProbe: - httpGet: - path: / - port: web - scheme: HTTP + httpGet: + path: / + port: web + scheme: HTTP startupProbe: - httpGet: - path: / - port: web + httpGet: + path: / + port: web volumes: - name: configs configMap: - name: connectivity-tester-stage-config + name: connectivity-tester-stage-config - name: tmp emptyDir: - sizeLimit: 2048Mi + sizeLimit: 2048Mi - name: api-config secret: - secretName: connectivity-tester-stage-config + secretName: connectivity-tester-stage-config --- apiVersion: v1 kind: Service @@ -157,25 +157,28 @@ spec: - stage.connectivity-tester.mtrnord.blog rules: - matches: - - path: - value: /api - type: PathPrefix - - path: - value: /api-docs - type: PathPrefix + - path: + value: /api + type: PathPrefix + - path: + value: /api-docs + type: PathPrefix + - path: + value: /metrics + type: PathPrefix backendRefs: - - name: connectivity-tester-stage - port: 8080 + - name: connectivity-tester-stage + port: 8080 timeouts: - request: 240s - backendRequest: 0s + request: 240s + backendRequest: 0s - matches: - - path: - value: / - type: PathPrefix + - path: + value: / + type: PathPrefix backendRefs: - - name: connectivity-tester-stage - port: 3000 + - name: connectivity-tester-stage + port: 3000 timeouts: - request: 240s - backendRequest: 0s + request: 240s + backendRequest: 0s