Skip to main content

Service Mesh and Sidecars

1. Executive Summary​

A service mesh is an infrastructure layer that handles service-to-service communication—security (mTLS), traffic management (routing, retries, timeouts), and observability (metrics, traces)—without embedding all logic in application code. The dominant deployment model uses sidecar proxies (typically Envoy) colocated with each workload pod, controlled by a control plane (e.g., Istio, Linkerd).

Sidecars intercept east-west traffic via iptables/eBPF redirection, applying policies consistently across polyglot services. The tradeoff is operational complexity, latency overhead, and resource cost—justified at scale when many teams need uniform security and traffic policies without library fragmentation.

This chapter covers mesh architecture, control vs data plane, mTLS identity, traffic splitting, sidecar lifecycle, alternatives (eBPF ambient mesh), and when not to adopt a mesh.

2. Why This Topic Matters​

Principal interviews on microservices platforms expect:

  • Clear control plane vs data plane separation.
  • How mTLS works with SPIFFE identities—not just "encrypt traffic."
  • Canary/blue-green at L7 without app changes.
  • Sidecar cost (memory per pod, startup time).
  • Mesh vs library (Resilience4j) vs API gateway boundary.

Weak answers treat mesh as mandatory for Kubernetes or confuse ingress gateway with full mesh.

3. Problems Being Solved​

ProblemService mesh response
Inconsistent TLS across languagesSidecar terminates mTLS uniformly
Per-team retry/timeout divergenceCentral policy via CRDs / xDS
Blind east-west trafficAutomatic metrics and distributed tracing headers
Canary without redeploying all clientsWeighted routing at proxy
Zero-trust networkingIdentity per workload, not IP trust
Policy auditDeclarative config in GitOps

Mesh does not replace: API design, idempotency, business logic, or north-south edge security alone.

4. Assumptions and System Model​

AssumptionImplication
Kubernetes or similar orchestrationPods as deployment unit for sidecars
East-west traffic dominates ops concernsMesh ROI higher with many internal calls
Control plane availability criticalCP outage may block new config—not necessarily data plane traffic
Proxies add latencyBudget 1–5ms per hop—verify workload
Not all traffic through mesh initiallyOpt-in namespaces, gradual rollout

Trust model: Each workload has X.509 SVID (SPIFFE); peers verify identity; authorization policies enforce which service may call which.

5. Essential Terminology​

TermDefinition
Data planeProxies handling actual request traffic (Envoy)
Control planeConfig distribution, certs, service discovery (Istiod)
SidecarProxy container alongside app container in pod
mTLSMutual TLS—both client and server present certificates
SPIFFE/SPIREWorkload identity framework and implementation
VirtualServiceIstio L7 routing rules (weights, headers)
DestinationRuleSubset definitions, TLS mode, load balancing
xDSDiscovery APIs (CDS, EDS, LDS, RDS) pushing config to Envoy
Ambient mesheBPF-based mesh reducing per-pod sidecars (Istio ambient mode)
Ingress gatewayNorth-south entry; distinct from east-west sidecars

6. Core Mechanism​

Control plane and data plane​

Figure 1: Control plane pushes policy and certificates; sidecars enforce on all east-west traffic.

Request path through sidecar​

Figure 2: App speaks plain HTTP to localhost; sidecar handles encryption, policy, telemetry.

Canary traffic split​

Figure 3: VirtualService weighted routing enables canary without client awareness.

7. Step-by-Step Walkthrough​

Scenario: Deploy payment service v2 with 10% canary on Istio.

StepAction
1Label v2 pods version: v2
2DestinationRule defines subsets v1, v2
3VirtualService routes 90/10 by weight to subsets
4Monitor golden signals on v2 subset
5Increase weight 10 → 50 → 100
6Rollback by setting v2 weight to 0—no client redeploy

mTLS bootstrap:

StepComponent
1Istiod issues certs to sidecars via SDS
2Peer authentication policy enforces STRICT mTLS
3AuthorizationPolicy allows order-service → payment-service only

Sidecar resource sizing (production starting points—verify per workload):

ComponentCPU requestMemory requestNotes
Envoy sidecar100m128–256MiIncrease with WASM filters
Istiod (per cluster)500m–21–4GiScales with service count
Ingress gateway500m–1512Mi–1GiTerminates north-south TLS

Under-provisioned sidecars cause OOMKill during traffic spikes—monitor proxy memory separately from app container.

mTLS migration phases:

PhasePeerAuthenticationRisk
0PERMISSIVE (default)Plaintext still possible
1PERMISSIVE + monitorIdentify non-mTLS callers
2STRICT per namespaceBreak non-injected pods
3STRICT cluster-wideFull east-west encryption

Never jump to STRICT cluster-wide without namespace pilot validation.

8. Invariants and Guarantees​

PropertyTypeStatement
Policy consistencySafetyAll meshed traffic subject to same CRD policies
Identity bindingSafetyCert SAN matches service account identity
Data plane availabilityLivenessExisting connections often survive CP brief outage
Zero added latencyNot guaranteedProxy hop adds CPU and network cost
Application correctnessNot guaranteedMesh does not fix non-idempotent retries

9. Failure Scenarios​

Scenario 1: Control plane outage​

Setup: Istiod unavailable during upgrade.

Effect: New pods may not receive certs/config; existing traffic may continue.

Mitigation: HA control plane; cert TTL and grace periods; staged upgrades.

Scenario 2: Sidecar not ready​

Setup: App starts before Envoy; traffic sent before proxy ready.

Effect: Connection failures or bypass—depends on holdApplicationUntilProxyStarts.

Mitigation: Init containers; readiness probe includes sidecar; startup ordering.

Scenario 3: Retry storm via mesh policy​

Setup: Mesh retries POST on 503 globally.

Effect: Duplicate charges without app idempotency.

Mitigation: Disable mesh retries on mutations; idempotency keys; policy per route.

Scenario 4: Resource exhaustion​

Setup: 500MB Envoy per pod × 5000 pods.

Effect: Cluster memory pressure; scheduling failures.

Mitigation: Right-size proxy; ambient/eBPF mode; namespace-scoped mesh only.

Scenario 5: Observability cardinality explosion​

Setup: Per-endpoint labels on all metrics.

Effect: Prometheus/OOM; expensive monitoring bills.

Mitigation: Cardinality limits; aggregate labels; tail sampling for traces.

Scenario 6: Egress policy blocks mesh control plane​

Setup: NetworkPolicy denies istiod → sidecar on port 15012 after security hardening.

Effect: Certificates expire; mTLS handshake failures cluster-wide.

Mitigation: Document required control plane ports; policy review in CI; staging validation before prod NetworkPolicy rollout.

10. Performance Characteristics​

FactorTypical impact
Sidecar hop~1–3ms latency; CPU for TLS
mTLS handshakeAmortized with session resumption
HTTP/2 multiplexingBetter connection reuse east-west
WASM filtersFlexible; can add significant CPU
eBPF ambientLower per-pod overhead—verify version maturity

Benchmark your payload sizes and QPS—marketing numbers are not transferable.

11. Scalability Limits​

  • Control plane load grows with service count and config churn rate.
  • xDS push storms on large fleets—use incremental xDS and config scoping.
  • Sidecar memory floor (~50–100MB) limits pod density per node.
  • Multi-cluster mesh (multi-primary, primary-remote) adds operational complexity.

12. Operational Considerations​

  • GitOps for VirtualService, DestinationRule, PeerAuthentication.
  • Version skew policy between control plane and data plane proxies.
  • Upgrade windows with canary control plane instances.
  • Debug tooling: istioctl proxy-config, Envoy admin interface (secured).
  • Namespace-level mesh enablement before cluster-wide.
  • Runbooks for sidecar injection failures and cert rotation issues.

Mesh operational dashboard (minimum panels):

PanelAlert thresholdAction
mTLS handshake failure rate>0.1% for 5mCheck cert rotation, injection
Sidecar proxy memory>80% limitIncrease limit or investigate leak
xDS push latencyp99 >2sControl plane scaling
Outlier ejection countSustained >10/minInvestigate destination service
AuthorizationPolicy deny rateSpike >3× baselineAttack or misconfiguration

Upgrade runbook outline: drain connections → upgrade control plane (one replica at a time) → verify xDS → rolling data plane proxy upgrade → smoke test mTLS between tier-1 services.

13. Security Considerations​

  • STRICT mTLS for production east-west; PERMISSIVE only during migration.
  • AuthorizationPolicy deny-by-default for sensitive services.
  • Protect control plane as tier-0—compromise enables policy tampering.
  • Ingress gateway WAF + mesh mTLS are complementary layers.
  • Audit proxy access logs for anomalous cross-service calls.

14. Cost Considerations​

  • Sidecar memory × pod count = significant cluster overhead.
  • Control plane nodes and supporting observability backend costs.
  • Engineer time for mesh expertise—often underestimated.
  • Ambient mesh may reduce infra cost; evaluate against maturity needs.

Decision criterion: Mesh ROI when many teams × polyglot services × strict security exceed platform team capacity for library-based solutions.

15. Production Implementations​

Istio​

CNCF graduated; Envoy-based; broad feature set; used at Google, IBM, many enterprises.

Linkerd​

Rust micro-proxy (linkerd2-proxy); lighter footprint; opinionated simplicity.

Consul Connect​

HashiCorp mesh integrated with Consul service discovery.

AWS App Mesh​

Managed control plane; Envoy on ECS/EKS.

Cilium Service Mesh​

eBPF-based; kernel-level optimization path.

Istio operational lessons (common production findings):

Organizations adopting Istio typically report these patterns—anecdotal, verify in your context:

  1. Start with observability only (mTLS PERMISSIVE, no authz) before STRICT enforcement
  2. Sidecar resource limits are the #1 cause of unexplained 503s during traffic spikes
  3. AuthorizationPolicy rollout causes more incidents than mTLS migration
  4. Ingress gateway is separate capacity planning from east-west mesh
  5. Ambient mode reduces memory tax but requires newer Istio versions and team upskilling

Linkerd positioning: Teams prioritizing simplicity over feature breadth often choose Linkerd for smaller clusters—the Rust micro-proxy has lower memory footprint than Envoy in many benchmarks (workload-dependent—verify). Tradeoff: smaller plugin ecosystem vs Istio.

When mesh is overkill: If the organization runs fewer than ~15 services in one language with mature Resilience4j/Polly standards and no strict zero-trust mandate, mesh operational cost may exceed benefit for years.

16. Alternatives and Tradeoffs​

ApproachStrengthWeakness
Library resilienceNo proxy overheadInconsistent across languages
API gateway onlySimple north-southNo east-west visibility
Sidecar meshUniform policyResource + ops cost
Ambient/eBPF meshLower per-pod costNewer; tooling evolving
No mesh (small fleet)SimplicityManual TLS and policy drift

Adopt mesh when east-west policy at scale is a recurring organizational problem, not because Kubernetes "requires" it.

17. Common Misconceptions​

MisconceptionReality
"Mesh encrypts everything automatically"Policies and injection must be configured
"Mesh replaces API gateway"Ingress and east-west serve different roles
"Zero latency impact"Measurable proxy hop exists
"Retries are always safe in mesh"Dangerous on non-idempotent operations
"All clusters need Istio day one"Many succeed with simpler patterns longer

18. Principal Architect Perspective​

  1. Golden path: Platform offers mesh opt-in with documented patterns; not mandatory for 3-service startups.
  2. Policy as code in Git with review—who can authorize * to payment-service?
  3. Latency budget must include mesh hops on critical paths.
  4. Idempotency remains application responsibility—mesh retries amplify bugs.
  5. Evaluate ambient/eBPF for new deployments to reduce sidecar tax.

Mesh vs library decision matrix:

FactorPrefer meshPrefer client library
Language count3+ polyglotSingle language (JVM)
Team count20+ teams<5 teams
Policy uniformityMandatory org-wideTeam autonomy OK
Latency budget>5ms headroom per hopSub-ms critical path
Ops maturityDedicated platform SRENo platform team

Document decision in ADR—revisit annually as ambient mesh matures.

Interview tip: When asked "should we use a service mesh," always answer with criteria and phased rollout—never yes/no without organizational and latency context.

19. Architecture Review Exercise​

Scenario: Full Istio strict mTLS on 2000 microservices; global retry=5 on all routes; no authorization policies; Prometheus 2M series.

Review prompts:

  1. Blast radius of retry policy?
  2. mTLS without authorization—sufficient for zero trust?
  3. Monitoring cost and cardinality?
  4. Remediation priorities?

Expected findings: Scope retries; add AuthorizationPolicy; reduce metric labels; cert rotation HA review.

20. Whiteboard Explanation​

90-second version:

"A service mesh separates communication concerns into sidecar proxies—the data plane—and a control plane that pushes config and certificates. Apps talk to localhost; Envoy intercepts east-west traffic, applies mTLS with workload identities, timeouts, retries, and emits metrics/traces. Istio defines routing with VirtualServices—canary by weight without changing clients. Control plane is Istiod distributing xDS config and acting as CA. Tradeoffs: every pod pays sidecar memory and latency; ops complexity is real. Use when many polyglot services need consistent security and traffic policy. Don't use mesh retries on POST without idempotency. Alternatives include library-based resilience or lighter meshes like Linkerd, and ambient modes reducing sidecars."

Extended principal addendum: Mention organizational readiness—mesh requires platform SRE ownership, policy review for AuthorizationPolicy changes, and developer education on debugging through sidecars. Without these, mesh adoption creates more incidents than it prevents in the first 6 months.

21. Interview Questions​

  1. Control vs data plane?

    • Signals: CP config/certs; DP proxies traffic.
  2. How does sidecar intercept traffic?

    • Signals: iptables/eBPF redirect; transparent proxy.
  3. mTLS in mesh?

    • Signals: Both sides present certs; SPIFFE identity.
  4. Canary without client change?

    • Signals: VirtualService weighted subsets.
  5. Mesh vs API gateway?

    • Signals: East-west vs north-south.
  6. Sidecar disadvantages?

    • Signals: Memory, latency, ops, startup ordering.
  7. When NOT use mesh?

    • Signals: Small fleet, few services, strong library discipline.
  8. Control plane down impact?

    • Signals: Existing connections often OK; new config/certs affected.
  9. AuthorizationPolicy purpose?

    • Signals: L7 allow/deny between identities.
  10. Ambient mesh difference?

    • Signals: eBPF path; reduced per-pod sidecar.
  11. xDS protocols?

    • Signals: Dynamic config push to Envoy (CDS, EDS, LDS, RDS).
  12. Retry policy risk?

    • Signals: Non-idempotent amplification.
  13. SPIFFE identity in mesh?

    • Signals: Workload X.509 SVID; not IP-based trust.
  14. Sidecar vs ambient mesh tradeoff?

    • Signals: Per-pod overhead vs eBPF complexity; maturity evaluation.
  15. How debug mTLS handshake failure?

    • Signals: istioctl authn tls-check; cert expiry; SAN mismatch.

Scoring rubric:

DimensionStrongWeak
ArchitectureCP/DP, identity, routing"Encrypts microservices"
TradeoffsCost, latency, opsMesh always good
SecuritymTLS + authzmTLS alone = zero trust

22. Interview Follow-Ups​

  1. Multi-cluster mesh topologies?

    • Signals: Primary-remote, multi-primary, locality load balancing.
  2. Migrate from PERMISSIVE to STRICT?

    • Signals: Staged namespace rollout; monitor plaintext failures.
  3. Mesh with Kafka/gRPC?

    • Signals: TCP tunneling; protocol detection; some features L7-specific to HTTP.
  4. How reduce sidecar memory on Java workloads?

    • Signals: Right-size proxy; ambient mode; fewer WASM filters; review access log verbosity.
  5. Zero-trust without mesh?

    • Signals: mTLS at app layer, SPIRE, or service-to-service certs—higher per-team burden.

22A. Production Low-Level Design (Interview + Game Day)​

East-west mesh LLD for order-service → payment-service with STRICT mTLS, sidecar circuit breaking, and retry budget. Production LLD and Game Day Standard.

Control plane vs data plane​

PlaneComponentRole
ControlIstiod (xDS, CA)Push VirtualService, DestinationRule, PeerAuthentication
DataEnvoy sidecarsmTLS, retries, outlier detection, telemetry

Policy LLD​

PolicySetting sketchWhy
PeerAuthenticationSTRICT in payment namespaceNo plaintext east-west
AuthorizationPolicyAllow order-service SA → payment-service onlyZero-trust beyond encryption
VirtualServiceattempts: 2, per-try timeout 250ms, retry on GET onlyBound amplification; POST needs app idempotency
DestinationRuleOutlier detection: 5 consecutive 5xx → eject 30sSidecar circuit break
Retry budgetMax 10% extra load vs baseline RPS on payment routePrevent metastable failure

Numbered request path​

Step-by-step flow:

StepDetail
1App unchanged—speaks plain HTTP to sidecar
2Deny if caller identity not in allow list; drop retry if budget exhausted
3Mutual cert verify; SAN matches destination service account
4–5Outlier detection ejects unhealthy payment pods
6–7W3C trace context injected for burn-rate dashboards

Canary LLD (payment v2)​

Step-by-step flow:

StepAction
1VirtualService routes by DestinationRule subsets
2Weight shift without client redeploy
3Rollback = set v2 weight to 0
4Abort canary if error budget burn on v2 subset

One SLO​

Payment route availability 99.95% at sidecar (5xx rate); page on mTLS handshake failure >0.1% or outlier ejection sustained.


22B. Game Day Playbooks​

#DrillInjectDetectMitigateVerify
GD-1STRICT mTLS breakExpire cert / wrong SAHandshake failure metricRoll PeerAuthentication; re-issueEast-west restored <15m
GD-2Retry storm on POSTGlobal retry=5 on mutating routePayment RPS 4× baselineCut retry budget; disable POST retryLoad normalizes
GD-3Sidecar OOMSpike traffic on under-provisioned proxyProxy restarts, 503 blipsRaise memory limit; scale podsp99 stable
GD-4AuthZ misconfigDeny rule blocks order→payment403 spike on paymentGitOps revert AuthorizationPolicyCheckout succeeds

GD-2 — Retry budget exhaustion​

23. Strong Answer Example​

Question: "Should we adopt Istio for 80 microservices?"

Answer this as a 45-minute greenfield design using the PRACTICE framework. Below is how a strong student sounds aloud—criteria and phased rollout, not "yes because best practice."


Student interview script (PRACTICE)​

P — Problem framing​

"Eighty services across five languages with inconsistent TLS, retries, and canary practices. The question is whether a service mesh is the right platform default for east-west policy—or whether library standards plus an API gateway suffice.

Non-goals for v1: multi-cluster mesh, ambient mode production cutover, or replacing ingress. I'll focus tier-1 payment + PII namespaces first."

R — Requirements​

TypeRequirement
SecuritySTRICT mTLS east-west; AuthorizationPolicy deny-by-default on payment
TrafficCanary by weight without client changes
ResilienceTimeouts + bounded retries; no unsafe POST retry
OpsGitOps policies; HA control plane; sidecar resource limits explicit
NFRCheckout path budget includes ~2ms/hop mesh overhead

A — Assumptions (state aloud)​

AssumptionWhy it matters
Kubernetes on EKS/GKESidecar injection model
Platform SRE team exists (0.5–1 FTE)Mesh ops cannot be ad hoc per team
Apps not idempotent on all POSTsMesh retry policy must be route-scoped
Existing ALB ingress for north-southMesh complements, not replaces
SLOs + burn alerts already definedCanary abort tied to error budget

C — Capacity (back-of-envelope)​

Pods meshed phase-1 → ~200 (payment + PII namespaces)
Sidecar memory floor → 128Mi × 200 ≈ 25Gi cluster tax (verify)
Extra latency/hop → ~2ms budget on checkout (measure in pilot)
Control plane → 2× Istiod HA; xDS push scoped by namespace
Retry budget cap → +10% max load on failing dependency
Pilot duration → 4 weeks before expanding namespaces

T — Topology (draw this)​

Rollout phases: PERMISSIVE observe → STRICT per namespace → AuthorizationPolicy → canary VirtualService.

I — Invariants (safety)​

"1. Idempotency stays in application code—mesh retries amplify bugs. 2. Circuit break at sidecar (outlier detection) plus app breaker for business logic. 3. Retry budget platform-wide cap—never unbounded mesh retries. 4. Control plane tier-0—compromise = policy tampering. 5. holdApplicationUntilProxyStarts on tier-1 pods."

C — Constraints (second C)​

ConstraintResponse
Latency-sensitive checkoutMeasure p99 with/without sidecar; keep aggregation path optimized
Sidecar memory tax >15% clusterEvaluate ambient/eBPF in phase-2 ADR
Polyglot teamsDocument golden-path VirtualService templates
CP upgrade riskOne-replica-at-a-time; smoke mTLS after each
Global retry=5 anti-patternGitOps lint blocks mutating-route retries

E — Evolution​

PhaseDeliverable
M1Observability-only mesh (PERMISSIVE) in staging
M2STRICT mTLS payment namespace + authz
M3Canary payment v2 by weight; abort on burn
M4Expand to PII namespaces; dashboard panels
M5Quarterly game day GD-2 retry budget drill

Closing line (interview)​

"With 80 services and polyglot stacks, mesh wins on uniform mTLS and canary—but I'd namespace-scope, STRICT tier-1 first, no global POST retries, explicit retry budget, and pilot four weeks measuring latency and memory tax. If sidecar cost breaks SLO, revisit ambient mesh or library golden path—documented in ADR, not religion."

Scoring signals​

StrongWeak / red flag
CP/DP, SPIFFE, phased STRICT"Istio is best practice"
Retry budget + idempotencyGlobal retry on all routes
Latency and memory cost"Zero overhead"
AuthorizationPolicy + mTLSmTLS alone = zero trust
Game day for retry stormDay-1 cluster-wide STRICT

Compact outline (if time-boxed to 2 minutes)​

"80 services, 5 languages → mesh for uniform east-west policy. Start payment namespace: STRICT mTLS, deny-by-default authz, HA Istiod, GitOps. Canary via VirtualService weights. No POST retries; retry budget 10%. Budget 2ms/hop; pilot 4 weeks. Expand if ROI clear; else libraries + ingress."

Additional strong answer​

Question: "How do you debug intermittent 503s between meshed services?"

"Traces filtered to 503 → compare istioctl proxy-config routes on both sidecars → istioctl authn tls-check → sidecar memory/OOM → VirtualService weight drift → AuthorizationPolicy deny spike → upstream app readiness. Document whether 503 is mesh or app before tuning retries."

24. Weak Answer Example​

Question: "Should we adopt Istio for 80 microservices?"

"Yes, Istio is best practice for Kubernetes microservices."

Why weak: No tradeoff analysis, rollout plan, cost, or security policy detail.

25. Hands-On Exercise​

  1. Install Istio or Linkerd on local KinD cluster.
  2. Enable automatic sidecar injection for one namespace.
  3. Deploy two versions of a service; configure 50/50 traffic split.
  4. Enforce STRICT mTLS; verify with istioctl authn tls-check.
  5. Capture trace from Jaeger/Zipkin across two meshed services.
  6. Measure latency with and without sidecar on load test.
  7. Document authorization policy allowing only one caller.
  8. Compare sidecar memory and p99 latency with mesh disabled on identical load test.
  9. Draft mTLS migration runbook from PERMISSIVE to STRICT for one namespace including rollback steps.
  10. Present mesh ROI analysis to mock principal panel: include cost, latency, and security benefits quantified where possible.

26. Knowledge Check​

  1. Data plane component? (Envoy sidecar proxy.)
  2. Canary mechanism in Istio? (VirtualService weights + DestinationRule subsets.)
  3. Sidecar listens how? (Transparent redirect from app container.)
  4. mTLS provides? (Encryption + mutual authentication.)
  5. CP outage typically affects? (New config/certs more than existing flows.)
  6. VirtualService purpose? (L7 routing and traffic weights.)
  7. STRICT mTLS mode? (Encrypted east-west; no plaintext.)
  8. Sidecar memory risk? (OOMKill if under-provisioned.)
  9. AuthorizationPolicy without mTLS? (Insufficient for zero trust.)
  10. Ambient mesh benefit? (Reduced per-pod proxy overhead.)

27. Flashcards​

#FrontBack
1Service meshInfrastructure layer for service-to-service comms.
2SidecarColocated proxy intercepting pod traffic.
3Control planeConfig, certs, discovery (e.g., Istiod).
4Data planeProxies handling actual requests (Envoy).
5mTLSMutual TLS with both peer certificates.
6VirtualServiceL7 routing rules in Istio.
7DestinationRuleSubsets, TLS mode, load balancing policy.
8SPIFFEWorkload identity standard.
9xDSEnvoy dynamic configuration APIs.
10Ambient mesheBPF-based mesh reducing sidecars.

28. Cheat Sheet​

ARCHITECTURE
App → localhost → Sidecar (Envoy) → mTLS → Peer sidecar → App

ISTIO KEY CRDs
VirtualService — routing, weights, faults
DestinationRule — subsets, TLS, LB
PeerAuthentication — mTLS mode
AuthorizationPolicy — allow/deny by identity

ROLLOUT
Namespace opt-in → PERMISSIVE → STRICT
Canary via subset weights

COSTS
~50-100MB RAM per sidecar
~1-3ms latency per hop
CP HA required

DON'T
Global retry on POST
Mesh day-1 for tiny fleets
Skip authorization with mTLS only

These topics interconnect in production platform design: Kubernetes provides the compute substrate; GitOps delivers mesh policies; resilience patterns remain application responsibility even with Istio retries; observability validates all layers under chaos and DR exercises.

30. References​

Primary sources​

Engineering blogs​

  • Buoyant (Linkerd) — sidecar vs ambient comparisons (vendor perspective—verify claims).
  • Google Cloud — Istio on GKE operational guides.

Distinction​

Claim typeSource
mTLS, xDS, SPIFFEOfficial Istio/Envoy/SPIFFE specs
Latency overheadWorkload-dependent—benchmark required
Ambient mesh benefitsVendor docs and early adopter reports