Terraform & IaC (50 Qs)•Part 3: Kubernetes Infrastructure as Code & GitOps (31 - 42)
Service Mesh Architecture: Istio vs. Linkerd (Mutual TLS, Traffic Shifting, Canary).
senior LevelMost AskedKubernetesSystem DesignMicroservices
In Simple Words: A Service Mesh injects a sidecar proxy (Envoy) next to every pod to handle service-to-service communication:
- Zero-Trust mTLS: Automatically encrypts and verifies identities for all pod-to-pod traffic without application changes.
- Traffic Shifting / Canary: Routes 95% of traffic to
v1and 5% tov2based on HTTP headers or percentage weights. - Distributed Tracing: Injects tracing headers across service boundaries.