Skip to content

Agent Mesh

examples: migrate chat-a2a to the charts/sam-node flow

Tomas Tormo3eeca72f53e6
diff --git a/development/examples/chat-a2a/README.md b/development/examples/chat-a2a/README.md
index 5d989f61..9820ab88 100644
--- a/development/examples/chat-a2a/README.md
+++ b/development/examples/chat-a2a/README.md
@@ -10,20 +10,16 @@ Edit `Dockerfile` and replace `<API_KEY>` in `ENV GEMINI_API_KEY=<API_KEY>`
(same pattern as `gemini-buddy-mcp`). Optionally override the model with
`GEMINI_MODEL` (default `models/gemini-3.5-flash-lite`).
-## 2. Host the agent on a mesh node
-
-Assign it in `development/kind/mesh-config.yaml`:
-
-```yaml
-node-a:
-node-b: chat-a2a
-```
-
-Then bring the mesh up:
+## 2. Bring the mesh up and deploy the agent
```sh
-make build
-make kind-up
+make build # builds ./bin/sam-node (once)
+make kind-up # control plane + router (no sam-nodes yet)
+docker build -t chat-a2a:local development/examples/chat-a2a
+kind load docker-image --name sam-kind chat-a2a:local
+helm --kube-context kind-sam-kind -n sam-kind install chat-a2a charts/sam-node \
+ -f development/kind/sam-node.values.yaml \
+ -f development/examples/chat-a2a/values.yaml
```
## 3. Enroll a local caller node
diff --git a/development/examples/chat-a2a/sam-node-config.yaml b/development/examples/chat-a2a/sam-node-config.yaml
deleted file mode 100644
index 910a4901..00000000
--- a/development/examples/chat-a2a/sam-node-config.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-version: "v1alpha1"
-attenuation:
- policies: []
-services:
- - type: "a2a"
- name: "chat"
- description: "Gemini-backed conversational A2A agent"
- target_url: "http://127.0.0.1:7777"
diff --git a/development/examples/chat-a2a/values.yaml b/development/examples/chat-a2a/values.yaml
new file mode 100644
index 00000000..aa5d442c
--- /dev/null
+++ b/development/examples/chat-a2a/values.yaml
@@ -0,0 +1,12 @@
+config:
+ version: v1alpha1
+ attenuation:
+ policies: []
+ services:
+ - type: a2a
+ name: chat
+ description: Gemini-backed conversational A2A agent
+ target_url: http://127.0.0.1:7777
+service:
+ name: chat-a2a
+ image: chat-a2a:local
diff --git a/site/content/docs/use-cases/chat-a2a.md b/site/content/docs/use-cases/chat-a2a.md
index 028d8590..0eb1e4a7 100644
--- a/site/content/docs/use-cases/chat-a2a.md
+++ b/site/content/docs/use-cases/chat-a2a.md
@@ -80,20 +80,21 @@ that brings the agent up with one command.
line in `development/examples/chat-a2a/Dockerfile` before building (a free
Google AI Studio key is fine for the demo).
-### 2. Mesh layout
+### 2. Bring the mesh up and deploy the agent
-Host the agent on one node in `development/kind/mesh-config.yaml`:
-
-```yaml
-node-a: # bare node
-node-b: chat-a2a # the A2A agent
+```bash
+make build # builds ./bin/sam-node (once)
+make kind-up # control plane + router (no sam-nodes yet)
+docker build -t chat-a2a:local development/examples/chat-a2a
+kind load docker-image --name sam-kind chat-a2a:local
+helm --kube-context kind-sam-kind -n sam-kind install chat-a2a charts/sam-node \
+ -f development/kind/sam-node.values.yaml \
+ -f development/examples/chat-a2a/values.yaml
```
-### 3. Bring the mesh up and enroll a local caller node
+### 3. Enroll a local caller node
```bash
-make build # builds ./bin/sam-node (once)
-make kind-up # control plane + router + agent (node-b)
make kind-local-node # local sam-node enrolled in the mesh — LEAVE RUNNING
```