Small CLI that installs a single-node NATS server into the cluster
KUBECONFIG points at, using harmony's `NatsBasicScore` composed
against `K8sBareTopology`.
This is the glue between `smoke-a4.sh` and the framework Score:
cargo run -q -p example_iot_nats_install -- \
--namespace iot-system \
--name iot-nats \
--node-port 4222
Defaults cover the demo exactly: iot-system namespace, NodePort 4222
so the libvirt VM agent can reach NATS through the k3d loadbalancer
port mapping.
No reinvented topology, no hand-rolled yaml, no helm shell-out. The
actual work (Namespace + Deployment + Service with the right
selector/ports/probes) lives inside `NatsBasicScore::Interpret` in
harmony where it can be reused by any future consumer.
Part of ROADMAP/iot_platform/v0_1_plan.md Chapter 1.
16 lines
315 B
TOML
16 lines
315 B
TOML
[package]
|
|
name = "example_iot_nats_install"
|
|
version.workspace = true
|
|
edition = "2024"
|
|
license.workspace = true
|
|
|
|
[[bin]]
|
|
name = "iot_nats_install"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
harmony = { path = "../../harmony", default-features = false }
|
|
tokio.workspace = true
|
|
anyhow.workspace = true
|
|
clap.workspace = true
|