Skip to content

Commit 5c602ea

Browse files
committed
ci: label contrast runners and directly assign stateful pods
1 parent ca8dd96 commit 5c602ea

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/bm_maintenance.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ jobs:
9898
if: ${{ matrix.platform.name == 'Metal-QEMU-SNP-GPU' || matrix.platform.name == 'Metal-QEMU-TDX-GPU' }}
9999
run: |
100100
kubectl apply -f https://raw.githubusercontent.com/katexochen/sync/9567164967b5832fb4992088af89dbbd94184043/server/deployment.yml
101+
kubectl patch statefulset sync --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/nodeSelector", "value": {"ci.contrast.edgeless.systems/main-runner": "true"}}]'
102+
kubectl rollout restart statefulset/sync
101103
kubectl rollout status statefulset/sync --timeout=5m
102104
kubectl wait --for=jsonpath='{.status.loadBalancer.ingress[0].ip}' --timeout=5m svc/sync
103105
nix run .#scripts.renew-sync-fifo

dev-docs/e2e/bare-metal-runner.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,13 @@ disable:
6767
- local-storage
6868
kubelet-arg:
6969
- "runtime-request-timeout=5m"
70+
node-label:
71+
- ci.contrast.edgeless.systems/main-runner=true
7072
EOF
7173
```
7274

75+
**IMPORTANT**: If the node is going to run a different Kubernetes distribution, make sure to apply these overrides in some other way.
76+
7377
Install K3s
7478

7579
```bash

packages/by-name/csi-driver-host-path/kustomization.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,11 @@ labels:
2121
pairs:
2222
app.kubernetes.io/instance: hostpath.csi.k8s.io
2323
app.kubernetes.io/part-of: csi-driver-host-path
24+
25+
patches:
26+
- patch: |-
27+
- op: replace
28+
path: /spec/template/spec/nodeSelector
29+
value: {"ci.contrast.edgeless.systems/main-runner": "true"}
30+
target:
31+
kind: StatefulSet

0 commit comments

Comments
 (0)