Without a mesh, apps talk directly The web app in the shop namespace calls the api app. The request goes through the Service address straight to the target pod.
Encryption, checking that the peer is really api, and logging calls are all up to app code. Each app tends to do it differently.
Enable Istio injection on the namespace Label the namespace with kubectl label namespace shop istio-injection=enabled. This turns on automatic injection of a sidecar (a helper container next to the app).
The setting applies to pods created from now on. Pods already running do not get a sidecar, so you must recreate them.
Key idea The mesh applies per namespace. In a namespace without the label, mesh resources have no effect on traffic.
A proxy joins each new pod When the pod is recreated, istiod, the Istio control plane, adds a proxy container (Envoy) to the pod spec. The app container and the proxy run together in one pod.
The app image and code stay the same. In the pod list, the container count goes up by one (for example, 1/1 → 2/2).
What changed in this step
+ Proxy container in web pod+ Proxy container in api podAll traffic passes through the sidecar proxies The web app still just sends requests to the api address. The web-side proxy intercepts the request and passes it to the api-side proxy, which hands it to the api app.
Both inbound and outbound traffic pass through the proxies, so traffic rules go on the proxies, not in the app.
Key idea Each request passes through two proxies, so latency and resource use go up a little. A mesh is not free.
istiod hands out rules and certificates istiod does not carry requests itself. It pushes rules such as VirtualServices and DestinationRules to every proxy, and issues each proxy a certificate that serves as its ID.
The layer that sets the rules is the control plane. The proxies that carry the actual requests are the data plane.
Proxies check each other's certificates and encrypt When two proxies connect, each shows its certificate and checks the other's. This is mutual authentication (mTLS: encrypted traffic where both sides verify each other's certificates).
Once verified, the link between them is encrypted. The apps still send and receive plaintext, but the hop outside the pod is ciphertext.
Key idea This is a separate layer from incoming HTTPS (TLS) from outside. mTLS protects the hops between pods inside the cluster.
Proxy metrics draw the traffic graph Every request passes a proxy, so proxies record request counts, latency, and failures. Kiali collects these metrics and draws the call relationships between Services.
Metrics are collected in Prometheus, and Kiali reads them. Without Prometheus, or without sidecars, the graph is empty.
Key idea You get traffic observability without creating any Gateway, VirtualService, or DestinationRule. Create mesh resources when you need to control traffic.
Traffic with pods that lack a sidecar needs separate thought Pods in another namespace without the injection label have no proxy. With no certificate, they cannot do mTLS and send plaintext requests.
By default Istio runs in PERMISSIVE mode, accepting both plaintext and mTLS. STRICT mode rejects plaintext requests. The mode is set with a PeerAuthentication resource. Check that no pods still call in plaintext before switching to STRICT.
Watch out Mesh metrics show detail only for meshed workloads. If the graph has gaps, first check whether a sidecar is attached.
Sidecars handle traffic; istiod handles the sidecars Enable injection on a namespace and every pod gets a proxy, and all traffic passes through the proxies. istiod hands out rules and certificates, and proxies verify each other with mTLS and record metrics.
Encryption and observability start with injection alone. Add mesh resources such as Gateways, VirtualServices, and DestinationRules when you need to control traffic.
Summary In a mesh, a proxy next to the app handles traffic. Turn injection on with a namespace label; it attaches to new pods. If rules do nothing or the graph is empty, first check that the pod's READY shows 2/2.