A service mesh such as Istio or Linkerd places a proxy next to every workload (or uses a node-level data plane). Proxies issue each workload a certificate tied to its service account, encrypt all traffic between them, and enforce which identities may call which services. Because every request crosses a proxy, the mesh also produces consistent latency, error and traffic metrics for every hop.
- Detect
- Analyze
- Resolve
When to use it
- Many microservices owned by different teams
- Zero-trust requirements inside the cluster
- Need for retries, timeouts and canary routing without code changes
When to avoid it
- A handful of services where network policies and TLS in the app are enough
- Teams without capacity to operate the mesh control plane
How traffic flows
- The control plane issues each workload a short-lived certificate for its service account identity.
- Proxies on both ends perform a mutual TLS handshake; plaintext is rejected when the mode is STRICT.
- Authorization policies allow calls by identity: only cart may call inventory, only payments may call ledger.
- Every proxy exports request metrics and trace spans, so each hop is observable without code changes.
Configuration examples
apiVersion: security.istio.io/v1
kind: PeerAuthentication
metadata:
name: default
namespace: istio-system # mesh-wide
spec:
mtls:
mode: STRICTapiVersion: security.istio.io/v1
kind: AuthorizationPolicy
metadata:
name: ledger-callers
namespace: shop
spec:
selector:
matchLabels: { app: ledger }
action: ALLOW
rules:
- from:
- source:
principals: ["cluster.local/ns/shop/sa/payments"]
to:
- operation:
methods: ["POST"]
paths: ["/v1/entries"]apiVersion: networking.istio.io/v1
kind: VirtualService
metadata:
name: inventory
spec:
hosts: [inventory]
http:
- route:
- destination: { host: inventory }
timeout: 2s
retries:
attempts: 2
perTryTimeout: 800ms
retryOn: 5xx,reset,connect-failureExamples are starting points. Review provider limits, names and versions for your environment before applying.
What to monitor
| Signal | Why it matters |
|---|---|
| Certificate expiry and rotation errors | Failed rotation breaks every connection for that workload at once. |
| Requests denied by authorization policy | New callers that were never allowed show up here first. |
| Per-route latency percentiles and error rates | The golden signals for every hop, from the proxies. |
| Retry volume | Retries hide failures and can multiply load during an incident. |
Common failure modes
PERMISSIVE mode left on
Plaintext traffic is still accepted, so mTLS is not enforced.
Sentinel reports namespaces where plaintext connections were accepted.
Retry storms
Every layer retries, multiplying load on a struggling service.
Lens shows retry volume rising faster than request volume and points at the route configuration.