Skip to content

Commit 64953de

Browse files
committed
update
1 parent 777b7f5 commit 64953de

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

docs/core-concepts/architecture/README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ This document explains how Lapdev works and how its components interact to provi
77
Lapdev consists of three main components:
88

99
1. **Lapdev API Server** (SaaS) - Manages users, authentication, and orchestrates environment creation
10-
2. **Lapdev-Kube-Manager** (In your cluster) - Reads production manifests and manages dev environments
10+
2. **Lapdev-Kube-Manager** (In your cluster) - Reads production manifests, manages dev environments, and pushes routing/intercept state to sidecars
1111
3. [**Devbox**](../devbox.md) **CLI** (Developer's machine) - Enables local debugging with cluster connectivity
12+
- Plus an auto-injected **Sidecar Proxy** per pod that enforces routing and intercepts at runtime
1213

1314
### Architecture Diagram
1415

@@ -40,7 +41,7 @@ Deployed as a single Kubernetes deployment in your cluster, `lapdev-kube-manager
4041
* **Reads production manifests** - Discovers Deployments, StatefulSets, ConfigMaps, Secrets, and Services from your production namespace to build [App Catalogs](../app-catalog.md)
4142
* **Creates dev** [**environments**](../environment.md) - Replicates selected workloads into isolated or shared namespaces
4243
* **Manages sync** - Monitors production manifests for changes and updates dev environments
43-
* **Handles traffic routing** - For [branch environments](branch-environment-architecture.md), routes traffic to the correct version of services (see [Traffic Routing Architecture](traffic-routing-architecture.md))
44+
* **Publishes traffic routing** - For [branch environments](branch-environment-architecture.md), computes routing tables and distributes them to sidecars (sidecars enforce routing; see [Traffic Routing Architecture](traffic-routing-architecture.md))
4445
* **Establishes secure tunnel** - Maintains websocket connection to Lapdev API Server for orchestration
4546

4647
**Permissions:**
@@ -60,10 +61,11 @@ The `lapdev devbox` command-line tool enables local development:
6061
**How it works:**
6162

6263
1. Developer runs `lapdev devbox connect` and sets their active environment in the dashboard
63-
2. Devbox establishes secure tunnel: `Developer → Lapdev API → lapdev-kube-manager`
64-
3. Developer enables traffic interception for specific services in the Lapdev dashboard
65-
4. Traffic for intercepted services is routed to developer's localhost
66-
5. Developer's code can transparently access in-cluster services (e.g., `http://payment-service:8080`)
64+
2. Devbox establishes secure tunnel: `Developer → Lapdev API`
65+
- Lapdev-Kube-Manager stays in the control plane, pushing intercept metadata and (optional) direct-connect hints to sidecars, but is not on the data path.
66+
3. Sidecar receives intercept config, opens its own tunnel to Lapdev API for that workload, and forwards intercepted pod traffic over the tunnel to the Devbox CLI
67+
4. Developer's code processes requests on localhost; responses flow back through the same tunnel to the pod
68+
5. Non-intercepted traffic continues to the in-cluster service transparently
6769

6870
Learn more: [Devbox Concept](../devbox.md) | [Local Development with Devbox](../../how-to-guides/local-development-with-devbox.md)
6971

0 commit comments

Comments
 (0)