Kubernetes (K8s) (50 Qs)•Part 3: Advanced Internals, Scale & Production Security (Senior / Lead)
Service Mesh Architecture: Istio vs. Linkerd, Sidecars vs. Ambient Mesh.
senior LevelSecurity & AuthKubernetesSystem Design
In Simple Words: A Service Mesh manages microservice-to-microservice traffic at Layer 7:
- Features: Transparent mutual TLS (mTLS), distributed tracing, circuit breaking, fault injection, and canary traffic splitting.
- Sidecar Architecture (Classic Istio/Linkerd):
- Injects an Envoy proxy container into every single Pod.
- Trade-off: Adds 50-100MB of RAM and 1-3ms CPU latency per Pod across thousands of Pods.
- Ambient Mesh (Istio Sidecarless Architecture):
- Splits the mesh into two layers:
- Layer 4 (ztunnel - Zero Trust Tunnel): Runs as a single DaemonSet agent per worker node to handle mTLS encryption and identity.
- Layer 7 (Waypoint Proxy): Deployed only per-namespace when advanced L7 routing/authorization is required.
- Eliminates 90% of memory overhead and allows zero-downtime mesh upgrades without restarting application Pods.
- Splits the mesh into two layers: