Files
harmony/examples/iot_nats_install/Cargo.toml
Jean-Gabriel Gill-Couture 18dd712f8e feat(iot): example_iot_nats_install — single-node NATS via NatsBasicScore
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.
2026-04-21 18:33:35 -04:00

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