You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core-concepts/architecture/README.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,9 @@ This document explains how Lapdev works and how its components interact to provi
7
7
Lapdev consists of three main components:
8
8
9
9
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
11
11
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
12
13
13
14
### Architecture Diagram
14
15
@@ -40,7 +41,7 @@ Deployed as a single Kubernetes deployment in your cluster, `lapdev-kube-manager
40
41
***Reads production manifests** - Discovers Deployments, StatefulSets, ConfigMaps, Secrets, and Services from your production namespace to build [App Catalogs](../app-catalog.md)
41
42
***Creates dev**[**environments**](../environment.md) - Replicates selected workloads into isolated or shared namespaces
42
43
***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))
44
45
***Establishes secure tunnel** - Maintains websocket connection to Lapdev API Server for orchestration
45
46
46
47
**Permissions:**
@@ -60,10 +61,11 @@ The `lapdev devbox` command-line tool enables local development:
60
61
**How it works:**
61
62
62
63
1. Developer runs `lapdev devbox connect` and sets their active environment in the dashboard
- 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
67
69
68
70
Learn more: [Devbox Concept](../devbox.md) | [Local Development with Devbox](../../how-to-guides/local-development-with-devbox.md)
0 commit comments