
Modern applications are made of many small services that call each other over the network. Securing those calls, controlling where traffic goes and seeing what is happening gets harder with every service you add, and solving it inside each application's code doesn't scale. A service mesh solves it once, for every service.
In this lesson you will:
See the three problems a service mesh solves: security between services, traffic control and visibility
Understand why building these into application code doesn't scale
See MeshMart, our example online store, running without a mesh
Istio has two parts: a control plane (istiod) that holds your configuration, and a data plane of Envoy proxies that carry every request between your services. Istio can run those proxies as a sidecar next to each workload, or in ambient mode with no sidecars at all.
In this lesson you will:
Name the parts of Istio: istiod and the Envoy proxies
Compare sidecar mode with ambient mode (ztunnel and waypoint proxies)
Look at a running Istio installation and a pod's proxy container
Every lab in this course runs on MeshMart, a small online store made of real services: web (the storefront), catalog (two versions), cart, orders and loadgen, which sends steady traffic so you always have something to look at. Every lab runs on a real Kubernetes cluster with Istio, entirely in your browser: nothing to install, no cloud account needed.
In this lesson you will:
Meet MeshMart's services
See how to start a lab in your browser, on Killercoda
Learn the lab commands: lab task, lab check, lab hint and lab solution
The lab commands (in the lab's terminal)
lab task: show the task again
lab check: grade your work
lab hint: one hint at a time
lab solution: the explained solution (try first!)
You can run lab check as often as you like. Click CHECK once it passes to finish the lab.
There are two supported ways to install Istio: the istioctl command-line tool and Helm charts. Both give you the same Istio; which one you choose depends on how you manage the rest of your cluster.
In this lesson you will:
Check a cluster is ready for Istio with istioctl x precheck
Install Istio with istioctl and a built-in profile
Install Istio with Helm (the base and istiod charts)
Verify the installation
Installing Istio doesn't change your applications until they join the mesh. In sidecar mode, Istio injects an Envoy proxy into each pod; in ambient mode, a per-node proxy handles traffic with no change to your pods.
In this lesson you will:
Enable sidecar injection for a namespace and restart workloads into the mesh
See pods go from 1/1 to 2/2 containers
Watch the live traffic graph in Kiali
See how ambient mode joins a namespace without sidecars or restarts
Put MeshMart in the mesh yourself in Lab 1 (sidecar mode)
Lab 1 solved step by step: label the namespace for sidecar injection, restart the workloads without downtime, and check that every proxy is in sync.
Try the lab yourself first: the link is in the previous lecture.
Istio's defaults are a starting point. You will change a setting for the whole mesh, tune a single workload, and learn the two ways to move to a new Istio version safely.
In this lesson you will:
Learn where Istio's settings live: the install (an istioctl overlay or Helm values), Istio's APIs and pod annotations
Give every proxy more memory by changing the install, and see why running pods need a restart to pick it up
Give one busy workload more still, with a pod annotation
Compare in-place upgrades with canary upgrades (revisions)
Lab 2 solved step by step: raise every proxy's memory request in the install overlay, restart the workloads, then give web's proxy more with an annotation.
Try the lab yourself first: the link is in the previous lecture.
Inside the mesh, Istio's VirtualService decides where each request goes, and a DestinationRule defines the versions (subsets) of a service and how traffic to them behaves.
In this lesson you will:
Define subsets for two versions of catalog
Route requests by header to a specific version
Set a load-balancing policy
Lab 3 solved step by step: define the v1 and v2 subsets in a DestinationRule, then route by header with a VirtualService.
Try the lab yourself first: the link is in the previous lecture.
A canary release sends a small share of traffic to a new version first, so problems affect a few users rather than everyone. With Istio, the split is a configuration change, not a deployment change.
In this lesson you will:
Send 10% of traffic to a new version of catalog
Roll forward to 100%, or back, with one edit
Watch the split live in Kiali
Lab 4 solved step by step: a 90/10 weighted route for catalog, measured with real requests.
Try the lab yourself first: the link is in the previous lecture.
Services fail and networks slow down. Istio can time out slow calls, retry failed ones and stop sending traffic to an overloaded service, and it can inject faults so you can test all of this safely.
In this lesson you will:
Stop a slow service from freezing the store with a timeout, and see why a timeout alone is not enough
Add retries, and see them happen in the proxy's counters
Learn how fault injection tests all this safely
See how connection pools and outlier detection work as a circuit breaker
Lab 5 solved step by step: a per-try timeout and retries on the route from web to catalog, checked in the proxy's counters.
Try the lab yourself first: the link is in the previous lecture.
Traffic from outside the cluster enters the mesh through a gateway. Istio implements the Kubernetes Gateway API, the standard way to describe gateways and routes in Kubernetes.
In this lesson you will:
Create a Gateway that Istio runs for you
Route requests by hostname and path with an HTTPRoute
Test the gateway from a pod outside the mesh, and read the route's status
Lab 6 solved step by step: a Gateway that Istio deploys, an HTTPRoute by host and path, and tests from outside the mesh.
Try the lab yourself first: the link is in the previous lecture.
Services often call APIs outside the cluster. Istio can allow any outbound traffic or only traffic to services you have registered, and registered external services get the same visibility as services inside the mesh.
In this lesson you will:
Compare the ALLOW_ANY and REGISTRY_ONLY outbound traffic policies
Block unknown destinations for one namespace with a Sidecar resource
Register an outside site with a ServiceEntry
See how an egress gateway gives you a single exit point
Lab 7 solved step by step: REGISTRY_ONLY for one namespace with a Sidecar resource, and a ServiceEntry for the one outside site the store needs.
Try the lab yourself first: the link is in the previous lecture.
Every workload in the mesh gets a cryptographic identity, and Istio can encrypt and authenticate every call between services with mutual TLS, with no changes to your code.
In this lesson you will:
Understand workload identity and mutual TLS
See the difference between PERMISSIVE and STRICT mode
Switch a namespace to STRICT and confirm that plain-text calls are refused
Keep one service open as an exception, and see why the most specific rule always wins
Lab 8 solved step by step: STRICT mutual TLS for the namespace, with one workload kept PERMISSIVE as an exception.
Try the lab yourself first: the link is in the previous lecture.
Encryption proves who is calling; authorization decides what they are allowed to do. Istio's AuthorizationPolicy lets you deny by default and allow specific callers, methods and paths.
In this lesson you will:
Start by denying everything, then let in exactly the caller you trust, by its identity
Restrict access by HTTP method, and learn the order policies are checked in
Check which requests are allowed and which get 403
Lab 9 solved step by step: an AuthorizationPolicy that allows only GET requests from web's service account.
Try the lab yourself first: the link is in the previous lecture.
Two more security features complete the picture: checking end users' JSON Web Tokens (JWT) at the mesh, and serving HTTPS to the outside world at the gateway.
In this lesson you will:
See how RequestAuthentication validates end-user tokens
See how an AuthorizationPolicy makes a valid token required
See how a gateway serves HTTPS with a TLS certificate
Istio collects metrics for every request without any change to your code, and with one Telemetry resource it also logs every request and traces it through your services. Kiali, Jaeger and Grafana turn all of it into a picture of your mesh.
In this lesson you will:
Switch on access logs and tracing with the Telemetry API
Read a proxy's access log, one line per request
Explore the live service graph in Kiali
Follow one request through several services in Jaeger
See what Grafana adds: request rates, errors and latency
Lab 10 solved step by step: one Telemetry resource for access logs and tracing, then web's proxy log, Kiali and a trace in Jaeger.
Try the lab yourself first: the link is in the previous lecture.
When something in the mesh doesn't work, the cause is usually in one of three places: your configuration, the control plane or a proxy. istioctl has a tool for each.
In this lesson you will:
Find configuration mistakes with istioctl analyze
Check that every proxy is in sync with istioctl proxy-status
Inspect a proxy's routes, clusters and listeners with istioctl proxy-config
Read proxy logs to follow a failing request
Lab 11 solved step by step: istioctl analyze, the proxy log, proxy-config and proxy-status find both faults, then both fixes.
Try the lab yourself first: the link is in the previous lecture.
You have now worked through every area of Istio, from installation to troubleshooting. This lesson recaps what you've learned and how it maps to the Istio Certified Associate (ICA) exam.
In this lesson you will:
Recap the four areas of Istio you've learned
See how they map to the ICA exam domains
Learn Istio by doing.
Istio is the most widely used service mesh: it gives your Kubernetes services secure connections, smart traffic routing and deep visibility, without changing application code. This course takes you through every area of Istio, from installation to troubleshooting, using one realistic online store, MeshMart, as the example throughout.
What you'll learn
How a service mesh works, in sidecar and ambient mode
Installing, customising and upgrading Istio
Exposing services with the Kubernetes Gateway API
Routing traffic, running canary releases and handling failures
Securing services with mutual TLS and authorization policies
Troubleshooting the mesh and seeing it live in Kiali
How the labs work
The course has 11 hands-on labs. Each one runs in your browser on Killercoda, a third-party lab platform, on a Kubernetes cluster with Istio that sets itself up in about a minute. You need a Killercoda account (you can sign up with GitHub or GitLab); there is nothing to install and no cloud account needed. Solve the task, run one command, and the lab grades your work by sending real traffic through the store. Every lab has its own lecture with the link and the task, followed by a video that solves it step by step.
Quizzes
Sections 1 to 5 each end with a short quiz, 34 questions in all, so you can check what you've learned before moving on. Every answer comes with an explanation, and you can retake a quiz as often as you like.
Who it's for
Developers, DevOps engineers and SREs who know Kubernetes basics (Pods, Deployments, Services, kubectl). The course also covers every area of the Istio Certified Associate (ICA) exam at an introductory level.