Process Flow - Service mesh concept overview
Client Pod
Sidecar Proxy
Service Mesh Control Plane
Sidecar Proxy
Server Pod
The service mesh adds sidecar proxies to pods to manage communication, controlled by a central control plane.
kubectl apply -f service-mesh.yaml # Deploys service mesh components kubectl get pods -n istio-system # Lists mesh control plane pods kubectl get svc -n istio-system # Shows services managed by mesh
| Step | Action | Component | Result | Notes |
|---|---|---|---|---|
| 1 | Deploy service mesh YAML | kubectl | Control plane pods start | Control plane manages mesh config |
| 2 | Client Pod sends request | Client Pod | Request intercepted by sidecar proxy | Sidecar handles routing and security |
| 3 | Sidecar proxy consults control plane | Sidecar Proxy | Receives routing rules | Control plane enforces policies |
| 4 | Sidecar proxy forwards request | Sidecar Proxy | Request sent to server pod's sidecar | Transparent to application |
| 5 | Server pod receives request | Server Pod | Processes request normally | No code change needed |
| 6 | Response sent back same path | Sidecar Proxy | Response intercepted and logged | Observability enabled |
| 7 | Exit | N/A | Communication complete | Request lifecycle finished |
| Variable | Start | After Step 2 | After Step 4 | Final |
|---|---|---|---|---|
| Request State | Not sent | Intercepted by client sidecar | Forwarded to server sidecar | Processed by server pod |
| Routing Rules | Empty | Fetched from control plane | Applied to request | N/A |
| Policy Enforcement | None | Checked by sidecar | Enforced on request | N/A |
Service mesh adds sidecar proxies to pods. Sidecars intercept and manage all pod communication. Control plane centrally manages routing and policies. No app code changes needed. Improves security, observability, and traffic control.