v1v1v1v1v2v2v2v2v2v2v2v21import random2def route(pct):3 roll = random.random() * 1004 return "v2" if roll < pct else "v1"V1 READY4V2 READY0TO V20%
Pods: blue v1, green v2 (clock = starting, tick = ready, red = failing)Front: the routing rule in Python, and the live countsEnvelopes: requests; the seal shows which version answeredShipping version 2 of an app that four pods (running copies) serve through a load balancer. Recreate stops every v1 pod before starting v2, so for a while nothing answers. A rolling update adds one v2 pod at a time and stops a v1 pod only once the new one is ready. Blue-green starts a full second fleet and flips all traffic at once, and back again to roll back. A canary sends a small share of requests, 10%, to one v2 pod, then grows it or pulls it. The envelopes show which version answers each request; the board counts ready pods and v2's share.

The idea

  1. Users send requests to a load balancer, which spreads them over four pods running version 1. A pod is one running copy of the app. Shipping version 2 means replacing those pods. A deployment strategy is the plan for that swap.

Recreate and rolling

Blue-green

Canary

Choosing

What happens

;; step 1/11 · idea
users → load balancer → 4 pods (v1)

pod = one running copy of the app
      (one or more containers)

goal: v1 → v2 with no one noticing
strategy = which pods run when,
           and who gets which version

A plain Kubernetes Service spreads requests over all ready pods (kube-proxy in iptables mode picks one at random), so in a rolling update v2's share follows the pod count. An exact weight such as 10% needs weighted routing: an ingress controller, a service mesh or a tool such as Argo Rollouts. The blue and green rows are only places to draw old and new pods. In a rolling update Kubernetes does not keep two named fleets; it replaces pods in one Deployment.