Appearance

Service meshes and platform boundaries

Trace which traffic a service mesh manages and decide which policy layer can enforce a particular rule.

What you will understand

  • Distinguish a mesh control plane from its traffic-handling data plane.
  • Trace workload identity and mutual TLS on a covered connection.
  • Explain what network policy and provider settings still control independently of a mesh.

Builds on: Protecting Secrets and tenant boundaries, Tenancy and software supply chains

Where a service mesh processes traffic

Checkout calls inventory and you want both sides to prove their workload identity while encrypting the connection. A service mesh manages selected application-to-application traffic using a control plane and traffic-handling components. A mesh control plane distributes configuration and often coordinates identity and certificates. Its data plane processes the covered connections using proxies. Depending on the mesh and its mode, those proxies can run alongside Pods or at the node or workload waypoint level.

With mutual TLS (mTLS), both participants present credentials. On a mesh-managed hop, the traffic handlers can verify identities and encrypt transport. Authorization policy can then decide whether the calling identity may use the destination. Inspect the first scene to see where traffic goes when only one workload is enrolled or policy selects a different path.

Which hop does the mesh protect?

The mesh can authenticate peers and encrypt traffic on the path it covers. The application still handles its own request semantics.

  1. Identify the covered traffic

    The chosen mesh mode determines which connections enter its data plane.

  2. Establish mutual TLS

    Configured mTLS verifies workload identities and encrypts the covered connection.

  3. Check authorization and app behavior

    The destination still needs appropriate business and end-user authorization; peer identity alone is insufficient.

Generic data-plane boxes apply across sidecar and other modes; actual placement and supported policy features vary.

Explore another case

How retries change request behavior

A mesh can also add timeouts, retries, traffic splitting, and telemetry where it understands the protocol. Those features change failures the application sees. If the mesh retries a request to charge a card after a timeout, the first attempt may already have succeeded. Only retry operations with suitable safety guarantees and give the overall request a sensible time budget.

Which layer can explain a failed request?

Network policy, mesh authorization, and infrastructure routing can each make a decision at a different point.

  1. Check network reachability

    The networking implementation enforces selected reachability rules independently of mesh identity policy.

  2. Check workload identity and request policy

    The mesh can add identity-aware or L7 decisions where supported; application authorization remains necessary.

  3. Check provider-level routing

    The managed-provider contract and platform ownership map determine who maintains infrastructure, add-ons and data recovery.

Provider responsibilities must be verified for the actual service; no universal managed-Kubernetes contract is assumed.

Identify which layer owns a policy

The sample NetworkPolicy permits ingress on port 80 from selected Pods in kv-lab. A compatible CNI enforces it at the network layer. An example mesh rule could make a different decision using a workload certificate or HTTP route if the traffic actually passes through the mesh. Meanwhile an infrastructure load balancer can control traffic before either policy sees it. Identify which layer owns each decision and how you would prove it.

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: m19-web-ingress
  namespace: kv-lab
  labels:
    lab: m19
spec:
  podSelector:
    matchLabels:
      app: m19-web
  policyTypes: [Ingress]
  ingress:
    - from:
        - podSelector:
            matchLabels:
              app: m19-client
      ports:
        - protocol: TCP
          port: 80
kubectl --context kind-kv-lab -n kv-lab get networkpolicies
kubectl --context kind-kv-lab -n kv-lab get pods -o wide
# Add-on discovery is read-only; absence is an expected local outcome.
kubectl --context kind-kv-lab get crd -o name
kubectl --context kind-kv-lab get namespaces

The platform operations lab assumes the base kind cluster. Inspect which resources actually exist. A mesh extension needs a compatible installation, enrolled workloads, and a test for protected, rejected, and unenrolled paths.

Verify where mesh coverage ends

Extra proxies can affect latency and resource use. Check certificate renewal, traffic coverage, and behavior when the control plane is temporarily unreachable. Existing proxies may keep prior configuration during an outage, while new workloads or updated policies need fresh state. The exact guarantees depend on the mesh implementation.

Check your understanding

A request between two enrolled services uses mTLS. Does that establish that a host-level client can only reach the service through the same policy?

It establishes that the observed connection used a covered path. Trace the host-level client separately and verify whether it reaches a mesh-managed listener, passes network policy, or can access some other address.

Go to the source

Reviewed 2026-10-27 · Kubernetes 1.37 · Related local exercise

Search the book

Search loads when you open it.

Keyboard shortcuts

Ctrl + K / ⌘ + K
Search the book
?
Open this guide
Tab / Shift + Tab
Move between controls
Enter / Space
Activate a focused button or disclosure
← / →
Focused visual timeline · previous or next step
Home / End
Focused visual timeline · first or last point
Esc
Close the open dialog or menu