Skip to main content

Install, build, deploy and test

Moved from the README.

Quick start​

Prerequisites: a Kubernetes cluster and a kube-context. Cilium with Hubble Relay is required too; paqtra install --with-cilium sets it up if it is missing.

# Install the CLI (downloads, verifies and installs the latest release)
curl -fsSL https://raw.githubusercontent.com/zyvorai/paqtra/main/install.sh | sh # or: brew install zyvorai/tap/paqtra

# Install Paqtra into the current kube-context (the Helm chart is built in)
paqtra install # add --with-cilium if the cluster has no Cilium yet
paqtra status --wait
paqtra ui # open the console

# Something wrong?
paqtra doctor
paqtra connectivity test
paqtra sysdump # redacted support bundle

Full reference: docs/cli.md.

Build from source​

Needs Rust and Node.js (see Requirements).

git clone https://github.com/zyvorai/paqtra.git
cd paqtra

# Build everything
cargo build --release # TUI binary
cd web-api && cargo build --release # API server
cd ../web-ui && npm ci && npm run build # Web dashboard

# Run the TUI
./target/release/paqtra tui # or: paqtra tui --skip-bootstrap

# Or deploy to a remote K3s cluster
./scripts/deploy-k3s-test.sh <host> <user> <password> --test

See QUICKSTART.md for the Docker Compose and manual web-stack paths.

Deployment options​

MethodCommand
Remote K3s./scripts/deploy-k3s-test.sh <host> <user> <pass> --test
Dockerdocker compose -f deployments/docker-compose.yaml up
CLI (recommended)paqtra install (chart built in; see docs/cli.md)
Helmhelm install paqtra oci://ghcr.io/zyvorai/charts/paqtra --version <X.Y.Z> or ./chart from a checkout
CLI binarycurl -fsSL https://raw.githubusercontent.com/zyvorai/paqtra/main/install.sh | sh, or ./install.sh --from-source

Environment variables​

PAQTRA_HOST=0.0.0.0 # API listen address
PAQTRA_PORT=9191 # API port
JWT_SECRET=<min-32-chars> # Required for auth
ADMIN_PASSWORD=<min-12> # Required when auth is enabled
ADMIN_USERNAME=admin # Optional (default: admin)
HUBBLE_ADDRESS=localhost:4245
UI_DIST_DIR=/var/lib/paqtra/ui # Path to built web UI
AUTH_DISABLED=true # Dev mode only (requires ENVIRONMENT=development|test)

Testing​

Run the same gates contributors use before a PR:

make check-all
make test-all
make build-all

CI also exercises the chart, CLI and remote smoke scripts under scripts/ci-*.sh when those jobs are enabled. Individual suites: cargo test, cd web-api && cargo test, cd web-ui && npm test.

Requirements​

ComponentMinimumRecommended
Rust1.75latest stable
Node.js1822+
Kubernetes1.251.28+
Cilium1.141.19+
Redis6.07.0+