cluster

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

commit 3d2c197b75ec1d42c26396e58e3d7df08e6eeee8
parent 3a8163d6f169658fd43a16844cf5183d758b0760
Author: MTRNord <MTRNord@users.noreply.github.com>
Date:   Mon, 30 Jun 2025 12:12:03 +0200

Deploy a stage deployment

Signed-off-by: MTRNord <MTRNord@users.noreply.github.com>

Diffstat:
Mapps/base/matrix/connectivity-tester/staging_deployment.yaml | 152++++++++++++++++++++++++++++++++++++++++---------------------------------------
1 file changed, 77 insertions(+), 75 deletions(-)

diff --git a/apps/base/matrix/connectivity-tester/staging_deployment.yaml b/apps/base/matrix/connectivity-tester/staging_deployment.yaml @@ -21,11 +21,11 @@ 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" imagePullSecrets: - name: ghcr-pull @@ -35,80 +35,80 @@ spec: image: ghcr.io/mtrnord/rust-federation-tester:main imagePullPolicy: Always 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 ports: - - containerPort: 8080 - hostPort: 8081 - name: api - protocol: TCP + - containerPort: 8080 + hostPort: 8081 + 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 - hostPort: 3001 - name: web - protocol: TCP + - containerPort: 3000 + hostPort: 3001 + 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-config + name: connectivity-tester-config - name: tmp emptyDir: - sizeLimit: 2048Mi + sizeLimit: 2048Mi --- apiVersion: v1 kind: Service @@ -118,9 +118,11 @@ spec: selector: app: connectivity-tester-stage ports: - - port: 8080 + - name: api + port: 8080 targetPort: 8081 - - port: 3000 + - name: web + port: 3000 targetPort: 3001 --- apiVersion: gateway.networking.k8s.io/v1 @@ -136,22 +138,22 @@ spec: - stage.connectivity-tester.mtrnord.blog rules: - matches: - - path: - value: /api - type: PathPrefix + - path: + value: /api + 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