Repository navigation
Demo tooling: bare-pod Foodbolt peers, demo CLI, laptop collector - #85
Merged
Merged
Conversation
This reverts commit 8e0347c. The demo runs bare pods from scripts/foodbolt-pods, where nothing is restarted, so the self-healing seed Deployment no longer fits.
foodbolt-pods: the peers Service selects every peer in the run, so joins no longer depend on one seed pod; the seed starts only when a run has no live peers. Adds a gateway NodePort, requires SPECTRAL_COLLECTOR_URL, restores OTEL_SERVICE_NAME, and renames the sidecar port so it no longer clashes with the service's http port. scripts/demo wraps it: status, watch, up, up-random, kill, crash, random kills, single-container stops over crictl, crash-machine, orders and down.
The collector (from GHCR) and visz run on the presenting laptop; cluster sidecars report to it over Tailscale.
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Tooling to run the Foodbolt-on-Spectral demo on the K3s cluster, with the collector and visz on the presenter's laptop.
scripts/foodbolt-podsstarts peers as bare Pods (restartPolicy: Never, no controller). Every Pod is a Foodbolt service plus a spctrld sidecar. Nothing restarts or reschedules on its own: a killed peer stays dead and every join is a manual command.spctrld-peers-<run>selects all peers in the run. spctrld re-resolves it on every seed pull, so any live peer admits new ones and killing a given peer never blocks joins. A sidecar-only seed Pod starts only when a run has no live peers. If every peer is dead but the old seed still exists, the script refuses rather than start an isolated second network.gateway-<run>NodePort, reachable over Tailscale.SPECTRAL_COLLECTOR_URLis required; an empty string disables reports.spctrld-api. Both containers used to name a porthttp, which would have routed the gateway Service to spctrld instead of the gateway.OTEL_SERVICE_NAME=spctrldis set again.scripts/demo(+demo.md) wraps it for presenting:status/watch/machines/graph/logs,up/up-random/up-all,kill/crash(graceful vs no Leave),kill-random/crash-random,kill-app/kill-spctrld(stop one container throughcrictlover SSH),crash-machine,orderanddown. Pod names accept a unique prefix. Defaults are rundemo-1,sha-297689bandhttp://<your Tailscale IP>:9400; each can be overridden by env.infra/workstation/compose.yamlruns the collector (ghcr.io/cap-theorem/spectral-collector,--stale-after=1m) on :9400 and visz on :9500 on the laptop. The cluster nodes are small and high-latency, so analysis and rendering stay local and the sidecars report over Tailscale.8e0347c(seed Deployment + 19 workers inoverlays/cloud). That self-healing model conflicts with the bare-pod demo, and the script refused to run alongside it.overlays/cloudis back to the plainspctrldDeployment.Testing
Run live on the 3-node cluster with
sha-297689band foodboltsha-5be11a9:dead(0)/dead(137)).paymentspeer made orders fail with "no instance of payments".up-allrestored them.crash-machinekept the overlay connected.For reviewers
infra/workstationbuilds visz from a sibling checkout (../../../visz, orVISZ_DIR). It needs the viszDockerfile, which isn't in that repo yet.kill-appandkill-spctrldneed SSH asubuntuwith passwordless sudo on the nodes; the Ansible setup provides it.spectral/spctrldDeployment has to be at 0 replicas beforefoodbolt-podswill run, and reapplyingoverlays/cloudduring a demo brings it back.