Development
Developing Grid
Run a two-site grid on a laptop with kind: a hub and a site cluster with SPIFFE peer trust and polled signals. CI runs the same script on every pull request.
Switching projects opens that project’s default documentation release.
Versions marked “overview” do not contain this page. Selecting one opens that version’s documentation overview.
On this page
Run a two-site grid on a laptop with kind: a hub and a site cluster with SPIFFE peer trust and polled signals. CI runs the same script on every pull request.
Dependencies
- Linux with Docker (macOS is not verified: images are linux/amd64 and kind LoadBalancer addresses are not reachable from the host)
- kind v0.32.0, kubectl, Helm v3.17.3, Git
- Rust from
rust-toolchain.toml, used to install Forge - 4 vCPU, 16 GB memory, 20 GB disk
Bring it up
git clone https://github.com/praxis-proxy/grid && cd grid
./scripts/forge.sh install
# Use published images for this commit instead of building them
export SKIP_BUILD=1 IMAGE_PREFIX=ghcr.io/praxis-proxy/grid- IMAGE_TAG=sha-$(git rev-parse HEAD | cut -c1-7)
for i in operator gateway enrollment; do docker pull "$IMAGE_PREFIX$i:$IMAGE_TAG"; done
# Create the hub and site clusters
./scripts/e2e-hub-site.sh up
# Install with SPIFFE trust (MODES=spiffe) and polled signals with
# operator-generated routing (HUB_ROUTER=operator); leaves the grid running
MODES=spiffe HUB_ROUTER=operator ./scripts/e2e-hub-site.sh test
To build the images yourself, unset SKIP_BUILD, IMAGE_PREFIX and IMAGE_TAG.
Look around
kubectl --context kind-grid-hub-site-hub -n grid get gridsites,gridnetworks,inferenceproviders
kubectl --context kind-grid-hub-site-site -n grid get gridsites
Tear down
./scripts/e2e-hub-site.sh down
Notes
- The Helm commands the script runs are in examples/helm/hub-site.
grid.membership.sourcepicks where a site learns its members.Swim, the default, discovers them by SWIM gossip.Localmeans this site’s configuration lists its peers asGridSiteobjects, polls their signals, and runs no SWIM. Both are supported peer options.