Applications & Kubernetes ยท Standard
Service Mesh Architecture and Adoption Guidelines
Defines decision criteria and operating standards for service-mesh identity, encryption, traffic management, observability, and multi-cluster adoption.
Document class: Applications & Kubernetes mandatory engineering standard Normative terms: MUST, MUST NOT, SHOULD, SHOULD NOT, and MAY are requirements levels. Applicability: Service-mesh selection, workload identity, mutual TLS, traffic management, multi-cluster design, observability, cost, adoption, and exit. Exception process: Deviations require a documented risk assessment, compensating controls, named risk owner, and expiry date.
| Control field | Value |
|---|---|
| Document ID | APP-11 |
| Owner | Cloud Center of Excellence |
| Review cycle | At least annually and after material cloud-service, Kubernetes, security, or operating-model changes |
| Evidence | Mesh decision record, mTLS and authorization tests, traffic and latency measurements, failure-mode analysis, adoption gates, and rollback evidence |
Decision in brief: Adopt a service mesh only when identity, encryption, traffic policy, or telemetry benefits justify the added control-plane, data-plane, reliability, and cost complexity.
Purpose
A service mesh can standardize workload identity, mutual TLS, traffic policy, and telemetry, but it adds a distributed data plane and a critical control plane. Adopt one only when its benefits exceed the operational and application complexity.
Decision criteria
Use a mesh when several of these requirements exist:
- Consistent workload-to-workload mutual TLS across many services.
- Identity-based service authorization independent of network location.
- Fine-grained traffic shifting, fault injection, or locality policy.
- Standard telemetry for heterogeneous application runtimes.
- Multi-cluster service communication with common policy.
Do not adopt a mesh merely to obtain basic ingress, simple metrics, or a small number of TLS connections. Application libraries, Gateway API, cloud-native networking, and OpenTelemetry may be simpler.
Mesh licensing, support models, and release channels change over time. For example, open-source Linkerd stopped publishing stable release artifacts in February 2024. Record the licensing, support, and release-channel position of each candidate mesh in the decision record.
Reference architecture
Architecture choices
Sidecar data plane
A proxy runs beside each workload. It provides mature traffic interception and per-workload policy but consumes resources, changes pod lifecycle, and increases upgrade surface. Kubernetes native sidecar containers (generally available from Kubernetes 1.33) improve proxy startup and shutdown ordering; confirm that the cluster version and mesh support them before relying on that behavior.
Node or ambient data plane
Shared node-level components reduce sidecars and application-pod overhead. Istio ambient mode, generally available since Istio 1.24, is one example: a node-level ztunnel provides layer-4 identity and encryption, and optional waypoint proxies provide layer-7 policy. Evaluate feature maturity, isolation, traffic visibility, upgrade behavior, and whether advanced layer-seven policy still needs additional components.
Gateway-only model
Central gateways manage north-south or selected east-west traffic without intercepting every workload. This is often the best initial step when full mesh requirements are not established.
Managed options on Azure
On AKS, the Istio-based service mesh add-on has been generally available since February 2024. The Open Service Mesh (OSM) add-on is retired upstream and on AKS, with the Azure retirement date set for 30 September 2027. Clusters MUST NOT select OSM for new adoption, and existing OSM users SHOULD plan migration to the Istio add-on.
Identity and encryption
- Give each workload a stable identity based on namespace and service account.
- Automate short-lived certificate issuance and rotation.
- Define trust domains and federation boundaries explicitly.
- Use strict mutual TLS after compatibility validation.
- Authorize service identities and operations, not only IP addresses.
- Protect certificate-authority keys and test trust-anchor rotation.
A green mutual-TLS dashboard does not prove authorization. Explicitly deny unexpected identities and validate negative cases.
Traffic management standards
Keep retries, timeouts, circuit breaking, and outlier detection consistent with application semantics. Retrying non-idempotent operations can duplicate transactions. Multiple retry layers can create a traffic storm.
For canary releases, bind traffic policy to immutable workload versions and objective health signals. Keep a direct rollback path and avoid long-lived routing rules that no longer match active releases.
Multi-cluster and multi-cloud design
Choose among independent meshes, federated trust domains, or one logical mesh spanning clusters. Consider latency, name uniqueness, overlapping networks, certificate authority ownership, failure isolation, data residency, and control-plane reachability.
Use Azure, AWS, GCP, and OCI services for load balancing, private connectivity, DNS, certificates, and telemetry where helpful, while keeping service identity and authorization policy portable. Do not require a remote control plane for local traffic continuity unless the risk is accepted.
Security and tenancy
- Restrict who can change mesh-wide policy, gateways, trust, and export rules.
- Prevent tenant namespaces from attaching arbitrary filters or exporting services globally.
- Apply network policy beneath the mesh as defense in depth.
- Validate bypass paths, host networking, excluded ports, and unmeshed workloads.
- Treat proxy admin endpoints and telemetry as sensitive.
Observability
Collect request rate, error rate, latency, connection state, certificate expiry, policy denial, control-plane health, and proxy resource usage. Use sampling and cardinality limits. Mesh metrics do not replace application business metrics or end-to-end traces.
Adoption sequence
- Document measurable use cases and success criteria.
- Test one non-critical service group.
- Establish identity, certificate, and policy ownership.
- Validate failure, bypass, upgrade, and rollback behavior.
- Add production services in controlled waves.
- Remove redundant application or gateway policy only after equivalence is proven.
Service-mesh product operating model
A mesh must be treated as a platform product with an explicit service boundary. The product definition should include supported workload types, namespaces, protocols, features, versions, upgrade cadence, certificate authority, trust domains, telemetry destinations, service objectives, support hours, and incident ownership.
Application teams need a documented contract describing injection or enrollment, ports excluded from interception, identity naming, default authorization, retry and timeout ownership, gateway usage, resource overhead, and a supported method to opt out or recover during an incident.
Capacity and cost model
Mesh cost includes more than proxy CPU. Measure:
- Per-workload memory and CPU overhead.
- Additional pod startup and termination time.
- Control-plane and certificate-issuance capacity.
- Telemetry cardinality, access-log volume, trace volume, and retention.
- Cross-zone or cross-region traffic introduced by locality policy.
- Additional gateway capacity and high-availability reserve.
- Engineering effort for upgrades, policy, and incident diagnosis.
Capacity tests should include peak connection count, certificate rotation, configuration fan-out, control-plane restart, and telemetry-backend outage. A mesh that is stable at average traffic may fail during mass rollout or reconnect events.
Mesh failure-mode analysis
Test at least the following failures:
- Sidecar or node data-plane process unavailable.
- Control plane unavailable or partitioned.
- Expired workload certificate or unavailable issuer.
- Invalid policy distributed to part of the fleet.
- Proxy version skew during upgrade.
- DNS or service-discovery inconsistency.
- Gateway exhaustion or unavailable zone.
- Telemetry exporter backpressure.
- Interception bypass through host networking, excluded ports, or unmeshed workloads.
Define which traffic continues using cached configuration and which changes cannot be applied during control-plane outage. Local service traffic should not depend unnecessarily on a remote control plane.
Authorization policy lifecycle
Mesh authorization should be deny-by-default for protected service groups and should use stable workload identities. Policies need positive and negative tests, owner, review date, and change history. Avoid policies based only on mutable labels or source IP where cryptographic identity is available.
Trust-domain federation requires explicit bundle distribution, namespace and identity mapping, revocation behavior, and compromise boundaries. Federation should not make every workload in one cluster automatically trusted by every workload in another.
Exit and rollback strategy
Adoption must include a path to remove a workload or the entire mesh. Preserve application-level timeouts, authentication, authorization, and telemetry where they remain required without the mesh. Document how to disable injection, drain proxies, remove finalizers, retain certificates or trust during transition, and clean up mesh-specific routing and policy.
A mesh is not successfully adopted if applications cannot be diagnosed or safely operated without a small group of specialists.
Validation
- Mesh adoption is tied to documented requirements.
- Workload identity and trust-domain boundaries are explicit.
- Mutual TLS and authorization negative tests pass.
- Retry and timeout policies cannot amplify failures.
- Control and data planes are capacity-tested and zone-resilient.
- Unmeshed, bypass, and failure paths are understood.
- Multi-cluster behavior during partition is tested.
- Proxy overhead and telemetry cost are measured.
- Upgrade and rollback procedures are rehearsed.
- Application teams can diagnose mesh-related failures.
Operational considerations
Operate the mesh as a platform product with supported versions, compatibility matrices, change windows, SLOs, and incident ownership. Monitor proxy version skew and certificate rotation. Provide a documented method to disable injection or remove a service safely during an incident.
Operational boundaries and acceptance criteria
Before adopting this guidance, record the accountable service owner, supported environments, critical dependencies, data classification, and the operational tier. State which decisions belong to the platform team and which remain with the workload team; document any exception with a risk owner and expiry date. This prevents a reference pattern from being treated as a universal fit.
Define observable acceptance checks before rollout. Include a positive path, a denied or invalid request, a dependency failure, and recovery after the failure clears. Capture the configuration or command output that proves each check, along with the software and policy versions used. Make checks repeatable in a representative non-production environment, and ensure they fail closed when required evidence is missing.
For production changes, identify the safe rollback or forward-recovery action, the person authorized to invoke it, and the condition that triggers it. Confirm that monitoring, support ownership, capacity limits, and escalation contacts are in place before declaring the change complete. Review these assumptions after a material platform, provider, or regulatory change.
Workload failure domains and upgrade safety
Treat a cluster as a shared failure domain only when its identity, network, storage, and administrative boundaries match the workload's risk. Spread replicas across independent zones where available, use disruption budgets for voluntary maintenance, and keep readiness separate from liveness so a dependency outage does not trigger restart storms. Set CPU and memory requests from measured demand, then test limits under realistic load; throttling and memory pressure can make a nominally healthy pod unavailable.
Before changing Kubernetes or an add-on, compare deprecated API usage, admission policies, CSI and CNI compatibility, node-image support, and workload disruption. Upgrade a representative canary first, observe scheduling and error rates, and retain a tested rollback or node-pool replacement path.
Related topics
- Kubernetes Application Networking and Gateway Architecture
- Kubernetes Application Security and Policy Standards
- Resilience, Scaling, and Deployment Strategies
- Kubernetes Observability and OpenTelemetry Standards
- Kubernetes Upgrade and API Lifecycle Management
References
- Istio documentation
- Istio ambient mode reaches general availability in 1.24
- Linkerd documentation
- Azure Kubernetes Service Istio-based service mesh add-on general availability
- Open Service Mesh add-on for AKS
- Service Mesh Interface specification (archived by CNCF in 2023; not a basis for new designs)
- Kubernetes Gateway API
- SPIFFE specifications