Skip to content

Local Development

Updated 21 min read

This guide walks through setting up a local development environment using kind to test the nebari-llm-serving-pack without a full Nebari deployment.

Scope of this dev path. The local kind setup exercises the operator, key manager, CRD, webhook, and reconciler logic against a real Kubernetes API, with Envoy Gateway and the Envoy AI Gateway ext_proc extension wired up. Served LLMModels use a mock vLLM instead of real model-serving pods, so there is no GPU inference. External-provider PassthroughModels route to the real provider, so end-to-end inference works against, for example, OpenRouter (see “Test an external provider” below). For a full GPU serving deployment use a real cluster as documented in the Installation guide.

Install the following tools before proceeding:

  • kind v0.20+
  • kubectl
  • helm v3.12+
  • Docker (or compatible container runtime)
  • Go 1.26.10+ (the key manager, the shared module, the usage console and openmeter-setup require 1.26.10; the operator requires 1.24.5 - each builds with the version pinned in its own go.mod)
Terminal window
git clone https://github.com/nebari-dev/llm-serving-pack
cd llm-serving-pack

The dev/Makefile automates cluster creation and dependency installation:

Terminal window
cd dev
make setup

This creates a kind cluster named llm-serving-test and installs:

  • cert-manager (for webhook TLS)
  • Gateway API CRDs
  • Gateway API Inference Extension CRDs
  • Envoy AI Gateway
  • Envoy Gateway, wired with the AI Gateway ext_proc extension (dev/eg-extension-values.yaml)
  • The LLMModel and PassthroughModel CRDs
  • Test GatewayClass and Gateway resources
  • The CloudNativePG operator (make deploy-cnpg), for the bundled OpenMeter’s Postgres

The cluster is created from dev/kind-config.yaml. The gateway’s Envoy Service (nebari-gateway) is pinned to NodePorts 30080 and 30443, as Nebari’s local provider does, and kind publishes them on 127.0.0.1 at host ports 48080 and 48443. Change them with make setup GATEWAY_HOST_HTTP_PORT=... GATEWAY_HOST_HTTPS_PORT=.... kind fixes port mappings when it creates a cluster, so make setup leaves an existing cluster alone: an llm-serving-test cluster created by an older make setup has no mapping. It keeps working for run-dev, which reaches the key manager by port-forward, but recreate it once with make teardown setup before make integration-up.

Dependency versions are pinned in versions.env at the repo root, which dev/Makefile reads. Override one for a single run with, for example, make setup GIE_VERSION=v1.5.0. They move as a set: Envoy AI Gateway v1.1.0 uses Envoy Gateway v1.8.1 and Gateway API v1.5.1 (see the compatibility matrix).

The setup takes a few minutes. You can watch progress in the terminal output.

Build the operator, key manager, and mock vLLM images, then load them into the kind cluster:

Terminal window
make build-images
make load-images

The mock vLLM image simulates a vLLM server for testing without a GPU. It responds to OpenAI-compatible API calls with canned responses.

Terminal window
make deploy

This applies the manifests in dev/manifests/ and waits for the deployments to become ready. You can also deploy them individually:

Terminal window
make deploy-operator # operator only
make deploy-key-manager # key manager only

Verify the deployments:

Terminal window
kubectl -n llm-operator-system get pods

Expected output:

NAME READY STATUS RESTARTS AGE
llm-key-manager-xxxxxxxxx-xxxxx 1/1 Running 0 30s
llm-operator-xxxxxxxxx-xxxxx 1/1 Running 0 45s

Apply the test LLMModel resource, which uses the mock vLLM image:

Terminal window
make apply-test-model

This creates an LLMModel named test-model in the llm-operator-system namespace. The operator reconciles it and creates the supporting resources. Per #59 all LLMModels must live in the operator’s own namespace - the validating webhook rejects anywhere else.

Watch the LLMModel status update as the operator reconciles:

Terminal window
kubectl -n llm-operator-system get llmmodels -w

You should see the READY column transition through states as each sub-resource is created. Once all reconcilers complete, the model shows Ready.

Check the operator logs if anything looks stuck:

Terminal window
make logs-operator

Once the model is ready, verify the created resources:

Terminal window
kubectl -n llm-operator-system get all
kubectl -n llm-operator-system get aigatewayroutes
kubectl -n llm-operator-system get securitypolicies

The operator creates:

  • A Deployment running the mock vLLM pod
  • A Service for the deployment
  • An InferencePool for intelligent request scheduling
  • AIGatewayRoute resources for external (API key) and internal (JWT) access
  • SecurityPolicy resources for auth enforcement (the API-key Secret they reference is co-located in this same namespace; see #59 for why)

The key manager exposes an HTTP API for generating and revoking API keys. In the dev cluster, forward its port:

Terminal window
kubectl -n llm-operator-system port-forward svc/llm-key-manager 8080:8080 &

On the dev cluster the key-manager runs with LLM_DEV_MODE=true, which bypasses auth and injects a fixed identity (user dev, group llm). No token is required - list models directly:

Terminal window
curl -s http://localhost:8080/api/models | jq .

Create an API key for the test model:

Terminal window
curl -s -X POST http://localhost:8080/api/keys \
-H "Content-Type: application/json" \
-d '{"modelName": "test-model"}' | jq .

Outside dev mode the key-manager validates a real Keycloak bearer token on every /api call (RSA signature + exp + iss), which the SPA obtains via PKCE.

The response includes the generated key. Keys are stored as Kubernetes Secrets in the operator namespace (defaults to llm-operator-system for the dev cluster, nebari-llm-serving-system for the chart):

Terminal window
kubectl -n llm-operator-system get secrets -l llm.nebari.dev/model

9. Test an external provider (PassthroughModel)

Section titled “9. Test an external provider (PassthroughModel)”

A PassthroughModel routes the shared endpoints to an external provider, such as OpenRouter or AWS Bedrock, rather than a locally served model. This path runs end to end on kind because the provider does the inference. These steps use OpenRouter and assume a real OpenRouter API key.

Create the provider credential and apply the example model:

Terminal window
make create-openrouter-secret OPENROUTER_API_KEY=sk-or-v1-...
make apply-passthrough-model
kubectl -n llm-operator-system get passthroughmodel openrouter -w

Once it reports Ready, reach it through the gateway. The external endpoint (llm.local) uses API-key auth, so inject a client key into the api-keys Secret to skip the key-manager:

Terminal window
kubectl -n llm-operator-system patch secret openrouter-api-keys --type merge \
-p '{"stringData":{"localtester":"sk-localtest-abc123"}}'
SVC=$(kubectl -n envoy-gateway-system get svc \
-l gateway.envoyproxy.io/owning-gateway-name=nebari-gateway -o name | head -1)
kubectl -n envoy-gateway-system port-forward "$SVC" 8443:443 &
curl -k https://llm.local:8443/v1/chat/completions \
--resolve llm.local:8443:127.0.0.1 \
-H "Authorization: Bearer sk-localtest-abc123" \
-H "Content-Type: application/json" \
-d '{"model":"openai/gpt-4o-mini","messages":[{"role":"user","content":"hi"}]}'

A curl issued immediately after the Secret patch can return 403: the key authenticates as soon as Envoy Gateway syncs the Secret, but authorization waits for the operator to re-render the model’s SecurityPolicy allow-list (typically a few seconds). Retry on a 403 before digging deeper.

The internal endpoint (llm-internal.local) always requires a real Keycloak JWT, even when access is public, so it is not reachable on a bare kind cluster.

The UI is a React + TypeScript SPA in frontend/, served in production by its own nginx image. For local work, run it with the Vite dev server against the dev-mode key-manager - one command wires up the cluster, models, port-forward, and hot reload:

Terminal window
./run-dev.sh # from dev/ · also: make run-dev · make ui (repo root)

This port-forwards the key-manager API to http://localhost:8080 and starts the Vite dev server at http://localhost:5173 (develop there). Two things make login disappear locally:

  • The dev server sets VITE_DEV_NO_AUTH=true, so the SPA skips the keycloak-js PKCE redirect.
  • The deployed key-manager runs with LLM_DEV_MODE=true, which bypasses auth and injects a fixed identity (user dev, group llm).

The UI loads without a login and can mint and revoke keys for any model the dev identity’s groups grant access to. Dev mode is controlled by LLM_DEV_MODE on the key-manager Deployment; it is off by default and must never be enabled in a real deployment.

Working on the UI itself? See UI Development for the full hot-reload loop and the frontend quality gate.

11. The integration profile (make integration-up)

Section titled “11. The integration profile (make integration-up)”

The journey suite’s integration tier runs on one fixed state of the dev cluster, the kind-dev profile:

Terminal window
make integration-up

It builds the operator, key manager, mock vLLM, usage console and openmeter-setup images from your working tree, loads them, and applies:

  • the operator and key manager out of dev mode, both trusting the dev Keycloak at its in-cluster URL, with usage metering on and both endpoints on the one shared Gateway nebari-gateway
  • the dev Keycloak with KC_HOSTNAME pinned to http://keycloak.keycloak.svc.cluster.local:8080, so a token minted through a port-forward carries the same issuer as one minted in the cluster; the demo users alice and bob (./demo-users.sh)
  • the mock provider and its PassthroughModel, trusted through the CA ConfigMap mock-provider-ca (spec.provider.tls.caConfigMapName)
  • the gateway access log from examples/usage-access-log.yaml, the usage collector, and a Gateway-wide ClientTrafficPolicy on nebari-gateway
  • OpenMeter and the usage console (the openmeter subchart)

Every change is a kubectl apply of the overlays under dev/manifests/ (the gateway’s EnvoyProxy is replaced whole), so it is safe to re-run: a second run restarts only the Deployments whose image changed. Right after loading the images, before deploying anything, it writes a provisioning record, the ConfigMap provision in the namespace llm-journeys, with each image’s reference and the IDs the kind node holds for it. Failures while provisioning stop it with a non-zero exit; if the cluster then does not settle within the wait timeout (WAIT_TIMEOUT, 300s each) it prints what is not ready and still exits 0, so the suite can report it.

The gateway answers on 127.0.0.1:48443 with the real hostnames. Its listener certificate is self-signed, so verify against its CA:

Terminal window
kubectl --context kind-llm-serving-test -n llm-operator-system get secret nebari-llm-shared-tls \
-o jsonpath='{.data.ca\.crt}' | base64 -d > /tmp/llm-ca.crt
curl --resolve llm.local:48443:127.0.0.1 --cacert /tmp/llm-ca.crt https://llm.local:48443/

make integration-up WITH_OPENMETER=0 brings the profile up without OpenMeter and the usage console (and removes them if they are installed). It exists for benchmarking: usage metering is not served then.

Running the suite. make integration-test (FEATURES=F4,F8 narrows it) runs the integration tier on this profile and prints a report by feature. JUnit and run-info.json land in tests/journeys/results/. Every run also writes tests/journeys/results/diagnostics/ after pytest and before the report, whatever the tests did: the logs, current and previous container, of the operator, key manager, usage console, usage collector, envoy-gateway, ai-gateway-controller and gateway proxy pods (logs/<component>/), the cluster events, the LLMModel, PassthroughModel, SecurityPolicy, HTTPRoute and Argo CD Application objects (objects/), and the provisioning record. No Secret is read. It collects only from a context the suite itself accepts (a kind-* context with a loopback API server); for any other it writes not-collected.txt saying why. index.txt lists each item as ok, absent, failed or timeout. A run removes the directory first, so what you find there is from the last run. Collecting never changes the run’s exit code, and each kubectl call is stopped after 10 seconds (COLLECT_DIAGNOSTICS_TIMEOUT), so a broken cluster still gets its report. To collect by hand:

Terminal window
../tests/journeys/collect-diagnostics.sh kind-llm-serving-test /tmp/diagnostics

The feature targets. make test-auth (F4), make test-model-scope (F8), make usage-e2e (F10 and F12) and make usage-forgery-check (F14) run their features through the same suite run and report. Each first runs make profile-check, and make integration-up when the profile is not up, so they also work from a cluster in dev mode. They switch the cluster to the integration profile and leave it there: they no longer put dev mode back when they finish. make deploy switches back (below).

One suite run at a time per checkout: a second make integration-test or feature target started while one is running stops at once with another journey run in this checkout holds ..., before it touches the helper package, the cluster or results/. The lock goes away when the first run ends, however it ends.

Switching back to dev mode. The profile replaces the dev-mode key manager that run-dev relies on, and the four feature targets leave the cluster on it. make deploy applies the base manifests again, which puts the operator and key manager back in dev mode (LLM_DEV_MODE=true). make deploy-keycloak removes the Keycloak issuer pin.

12. Real-auth mode for the SPA login (make spa-real-auth)

Section titled “12. Real-auth mode for the SPA login (make spa-real-auth)”

To try the SPA’s keycloak-js login against the dev Keycloak instead of the dev-mode bypass:

Terminal window
make spa-real-auth
make pf-keycloak # http://localhost:8180 (in another terminal)
make pf-key-manager # http://localhost:8080 (in another terminal)
cd ../frontend && npm run dev

make spa-real-auth redeploys the dev Keycloak from the shared manifest, whose token issuer follows the request host, and takes the key manager out of dev mode, trusting the issuer http://localhost:8180 that frontend/public/config.json points keycloak-js at. Log in as dev / password. Only Keycloak and the key manager switch: run after make integration-up, the rest of that profile stays (the operator on the shared Gateway with usage metering, the access log, the ClientTrafficPolicy, the usage collector and the mock provider), and make integration-up switches the two back. make deploy returns the key manager to dev mode. make test-auth does not leave this mode behind: it runs the suite on the integration profile, and with KEEP_AUTH set it prints a pointer to make spa-real-auth and exits non-zero.

The journey suite’s nebari profile runs on a local Nebari cluster made by NIC (nebari-infrastructure-core), not on the dev kind cluster. It needs the nic prerequisites (Docker), gh (logged in), yq (mikefarah v4) and kind.

Terminal window
make nebari-up
  • resolves the NIC release tag once: NIC_VERSION=<tag> when set, else the tag in dev/nic/nic-version.pin when that file holds one, else the latest release (see “Pin the NIC release” below; a pinned or overridden run is recorded as a deviation)
  • downloads that release’s nic binary with gh release download into dev/.nebari/nic/<tag>/, after checking the tarball against the release’s checksums.txt
  • runs nic deploy -f dev/nic/nic-config.yaml: NIC’s local kind provider and local repository provider, project llm-nebari, domain nebari.local. The same file is the config CI hands to deploy-nebari-action, so both make the same cluster: kind cluster llm-nebari, kube context kind-llm-nebari, GitOps repo ~/.nic/gitops/llm-nebari, the gateway on 127.0.0.1:80 and :443
  • waits for NIC to converge, as deploy-nebari-action does in CI: every 10 s it reads NIC’s Argo CD Applications, and it returns once nebari-root is Synced and every Application is Healthy for 3 polls in a row. It waits up to NIC_WAIT_TIMEOUT seconds (default 1200) and prints how long it took; at the timeout it fails, naming each Application that has not converged with its sync and health. Applications that are Healthy but OutOfSync (gateway-config and httproutes on NIC v0.19.0) do not hold it up; it names them
  • writes dev/.nebari/run.env, the record every later nebari step reads: NIC_TAG, NIC_DOMAIN, NIC_PROJECT and NIC_VERSION_OVERRIDE (the pin, empty without one)

It stops first when something already listens on 127.0.0.1:80 or 127.0.0.1:443 (only that address counts: a VPN listening on its own interface does not), unless the kind cluster llm-nebari already exists, in which case nic deploy reuses it. A second make nebari-up at the same NIC tag is safe.

nic deploy writes NIC’s own manifests only into a GitOps repo it has not bootstrapped yet, so a kept repo would keep the old tag’s platform. For that reason make nebari-up also stops, before it deploys anything, when ~/.nic/gitops/llm-nebari exists but the cluster does not (remove the directory for a clean start), and when the cluster exists and run.env records another NIC tag than the one just resolved (run make nebari-down and remove the directory first). It removes run.env before nic deploy and writes it only after the wait, so a failed deploy or a cluster that did not converge leaves none behind. Running make nebari-up again on that cluster deploys and waits again.

dev/.nebari/ is git-ignored. nic deploy, like kind create cluster, adds the context kind-llm-nebari to the kubeconfig in use and makes it current. To keep it out of your default kubeconfig, run with KUBECONFIG=<file> and use the same file for the later targets.

Terminal window
make nebari-down

destroys the cluster (nic destroy --auto-approve, with the nic of the tag in run.env) and removes run.env. It refuses when run.env names another project than dev/nic/nic-config.yaml. NIC leaves ~/.nic/gitops/llm-nebari in place; the target prints its path and the rm -rf that removes it, which the next make nebari-up needs.

Without run.env (a nic deploy or a wait that failed) make nebari-down has no NIC tag to destroy with and refuses. Remove that cluster by hand, as its message says:

Terminal window
kind delete cluster --name llm-nebari
rm -rf ~/.nic/gitops/llm-nebari
Terminal window
make nebari-pack

installs the pack the way deploy-nebari-action’s add-software-pack does: Argo CD pulls the chart from the pack’s GitHub repository at your HEAD commit, so that commit must be on GitHub first. Besides the tools above it needs jq and openssl. It runs three steps, each a target of its own (CI runs the first and the last around add-software-pack):

  • make nebari-pack-before: removes the rendered files of an earlier run (so a refused run leaves nothing for make nebari-pack-apply to apply), the source check (below), then renders the pack Application and the GIE CRDs Application at HEAD into dev/.nebari/; applies the AI Gateway Applications (examples/envoy-ai-gateway.yaml) and the GIE CRDs Application; commits the envoy-gateway values overlay and the access-log entry to ~/.nic/gitops/llm-nebari (only when they changed, unsigned, as llm-serving-pack journeys <journeys@nebari.invalid>, so no git identity of yours is needed), refreshes each and waits until the cluster holds it; makes sure the Keycloak group llm exists; builds the operator, key-manager, frontend, usage-console, openmeter-setup and mock-vllm images from the working tree, tagged <sha>, or <sha>-dirty-<hash> when the working tree has any change (a tracked edit or an untracked file that is not git-ignored), and loads them into the kind cluster; writes the provisioning record (ConfigMap llm-journeys/provision); prints the deviations from installation.md it recorded
  • make nebari-pack-apply: applies the rendered pack Application with a sync request, as add-software-pack does; it does not wait
  • make nebari-pack-after: once the pack’s namespace and operator are up, deploys the mock provider and its PassthroughModel; then waits (up to NEBARI_PACK_WAIT_TIMEOUT, 600 s) for the Applications to be Synced and Healthy with no sync still running or requested, and the pack and GIE CRDs Applications synced at the rendered commit (on a second run at a new commit, Argo CD reports the old commit as Synced for a while), and prints their state and the deviations. It exits 0 even when they have not converged: the journey suite’s F1 reports that

Every step reads dev/.nebari/run.env first and stops, naming it and dev/nic/write-run-env.sh, when it is missing (run make nebari-up). PACK_RELEASE=<version> installs a published release instead, as the starting point of the upgrade test (see “Test an upgrade from the previous release (F13)” below).

The source check (dev/nic/check-source.sh) is the first thing it does, before anything is built or applied. It refuses, naming each finding, when HEAD is not fetchable by its SHA from the repository the pack Application names (https://github.com/nebari-dev/llm-serving-pack.git; a commit on a fork counts once a pull request from it has been opened there, and still counts after that pull request is closed), or when the working tree differs from HEAD under charts/nebari-llm-serving or tests/journeys/install (an untracked file there counts). Changes elsewhere, edits and new untracked files alike, are allowed: they are built into the images and make the image tag <sha>-dirty-<hash>. To test a change to the chart or the install files, commit and push it. The rendered files in dev/.nebari/ are git-ignored and never make the tree dirty, so a second make nebari-pack runs; it makes no new GitOps commit and restarts the Envoy Gateway controller once more.

Run the journey tier on it (make nebari-test)

Section titled “Run the journey tier on it (make nebari-test)”
Terminal window
make nebari-test

runs the journey suite’s journey tier against the cluster of make nebari-up and make nebari-pack, through the real Keycloak login in Chromium where a test needs a user’s token. It reads dev/.nebari/run.env first (and stops, naming it and dev/nic/write-run-env.sh, when it or a key is missing), then installs the nebari_journeys helpers at NIC_TAG, runs the suite’s own unit tests (pytest tests_lib), and runs the tier through run-suite.sh with --kube-context=kind-<project>. FEATURES narrows it (FEATURES=F1,F3); without it every journey feature runs. It holds the same run lock as make integration-test, so one suite run at a time per checkout.

REPORT_OUT=<path> on make integration-test, make nebari-test and make nebari-release-test also appends the report to that file (CI points it at the job’s step summary); the report is still printed.

A test listed in known_failures that passes is a warning in the report, not a failure: remove its entry. The run writes tests/journeys/results/: the JUnit file, run-info.json, the report, diagnostics/ (pod logs, events, the pack’s objects, the Applications and the provisioning record), and Playwright traces of failed browser tests under playwright/. A trace of a failed login holds the scratch user’s password and any key minted in the page; both are deleted with the run’s scratch objects, but keep the traces to yourself.

dev/nic/nic-version.pin is a tracked file. It is empty when nothing is pinned. Otherwise it holds one NIC release tag, written as NIC writes it, such as v0.19.0. The pin is stripped of whitespace, so a trailing newline does not matter, and a missing file reads as empty.

The pin is for emergencies. When a new NIC release breaks the checks, a small PR writes into the file the tag of the release the suite on main last passed with, normally the one before the new release. That unblocks the unrelated PRs. An older tag does not work: the suite supports only the helper signatures of the release it was written for, and tests_lib/test_nebari_journeys_api.py fails on any other. The PR that fixes the suite for the new release also empties the pin, so its own checks run against the latest release. When the NIC release itself is broken, the pin stays until NIC ships a fix, and the PR that empties it is the test of that fix.

make picks the NIC tag in this order:

  1. a non-empty NIC_VERSION=<tag> on the command line or in the environment
  2. the tag in dev/nic/nic-version.pin
  3. the latest NIC release

So NIC_VERSION=<tag> make nebari-up still overrides the pin. An empty NIC_VERSION= does not hide it. A pinned run is recorded as an override in dev/.nebari/run.env and listed under deviations in the report.

Test the journey tooling (make test-journey-tooling)

Section titled “Test the journey tooling (make test-journey-tooling)”
Terminal window
make test-journey-tooling

runs the unit tests of the journey suite and the dev script tests. It needs no cluster. It runs, in this order: install-helpers.sh at the resolved NIC tag, the mock vLLM server test, pytest tests_lib -W error, dev/nic/tests/run.sh, and the three tests/journeys/tests_lib/*.test.sh files. Those run under the same run lock as make integration-test, because they reinstall the helper package. After the lock is released it runs dev/tests/profile-check-branch.test.sh. It stops at the first failure.

The tooling tests never see the pin or NIC_VERSION. Only the step that resolves the tag does.

Test an upgrade from the previous release (F13)

Section titled “Test an upgrade from the previous release (F13)”

F13 checks that an install of the previous published release keeps working after an upgrade to your commit: a key made on the release still answers after the upgrade. It is two suite runs around the upgrade, joined by a state file.

Known gap: there is no release to start from yet. F13 starts only from a release that installs the same gateway pins as your working tree: the release’s own versions.env, read from its tag nebari-llm-serving-<version>, must have the same AI_GATEWAY_VERSION and GIE_VERSION (GATEWAY_API_VERSION and ENVOY_GATEWAY_VERSION are not compared: NIC supplies those). Releases up to and including 0.1.4, the latest today, have no versions.env, so make nebari-pack PACK_RELEASE=0.1.4 is refused with nebari-llm-serving-0.1.4 has no versions.env (Q82). Until a release is cut from versions.env, F13 cannot run; its tests, the gate and the two-stage flow are covered by unit and script tests only.

Once such a release exists (say 0.2.0), from the repository root on a fresh cluster: PACK_RELEASE refuses a cluster that already has the pack Application, or a provisioning record from a working-tree install, naming the cause; run make -C dev nebari-down nebari-up first.

Terminal window
# 0. A fresh NIC cluster.
make -C dev nebari-down nebari-up
# 1. Install the release (the published chart, its own images).
make -C dev nebari-pack PACK_RELEASE=0.2.0
# 2. The before stage: a scratch user, model and key on the release.
make -C dev nebari-release-test STAGE=before
# 3. The upgrade: a plain nebari-pack moves the same Application to your commit.
make -C dev nebari-pack
# 4. The after stage: the old key still works, F1 checks the upgraded install.
make -C dev nebari-release-test STAGE=after

make -C dev nebari-release-test STAGE=before|after runs one stage under the same run lock as make nebari-test. It reads dev/.nebari/run.env, installs the helpers at NIC_TAG, and runs run-suite.sh --tier release with --release-stage=<stage>, --state results/f13-state.json and the Playwright trace flags. It installs nothing on the cluster, so steps 1 and 3 stay separate. Any STAGE other than before or after exits 2 and runs nothing. It is a local target for now: no workflow calls it.

What PACK_RELEASE=<version> does differently: it first runs dev/nic/pack-release-gate.sh, which refuses a release with no versions.env or with different AI_GATEWAY_VERSION or GIE_VERSION, naming each difference. The source check still runs. The pack Application is the one installation.md 8.1 shows, the OCI chart quay.io/nebari/charts nebari-llm-serving at the version, with the values in tests/journeys/install/values-release.yaml (only keys that release knows) and the release chart’s own images; only mock-vllm is built, for the test’s model. The access-log step and the mock provider are skipped, and the provisioning record says release:<version> and lists what was skipped. The Application keeps its name, so step 3 replaces its source with the Git path at your commit in place, adds what the release skipped, and rewrites the record for the commit.

Each stage keeps its own results under tests/journeys/results/<stage>/: junit.xml, run-info.json and diagnostics/. A stage run removes only its own directory, so the after stage leaves the before stage’s evidence in place. The after stage’s report merges both JUnit files, and F13 passes only with a passed result from each stage; F1 is judged from the after stage alone. The report of the before stage reads only its own file, so it lists F13 and F1 as not run; the before stage’s exit status is therefore pytest’s (0 when test_upgrade_before passed), and the after stage’s is the merged report’s. To build the merged report by hand:

Terminal window
cd tests/journeys
PYTHONNOUSERSITE=1 pixi run --locked python -m llm_journeys.report --tier release \
--junit results/before/junit.xml --junit results/after/junit.xml \
--features features.toml --pins ../../versions.env --run-info results/after/run-info.json

The report shows the NIC tag of both runs. Keep --state outside results/before/ and results/after/: each stage removes its own directory before it starts. The after test deletes the key, the model, the scratch user and the state file when it ends (--keep leaves them).

You can tail logs from either component while working:

Terminal window
make logs-operator
make logs-key-manager

Run the operator and key manager tests directly without a cluster:

Terminal window
cd operator && make test
cd key-manager && go test ./...

When you are done, delete the kind cluster:

Terminal window
make teardown

Or equivalently:

Terminal window
make clean
  • Read the Architecture page for the full design and CRD spec
  • See dev/manifests/test-model.yaml for an annotated example LLMModel
  • Check the Helm chart at charts/nebari-llm-serving/ for production deployment values
  • For a real deployment with GPUs and OIDC, see the Quick start