~/ nmadiraju.com Amazon EKS · Deployments and ReplicaSets
arrow_back Back to nmadiraju
Visual Walkthrough · Kubernetes fundamentals

How Deployments and ReplicaSets Work on Amazon EKS

Follow one Deployment from 3 Pods through a rolling update, a bad image and a rollback, then check yourself with 8 questions.

1Visual Walkthrough

A Deployment, its ReplicaSets and their Pods, followed through a rolling update and a rollback Left, objects in the Kubernetes API: the Deployment web and three ReplicaSets, one per Pod template. Right, the Pods each ReplicaSet runs. The walkthrough replaces a lost Pod, shows a ReplicaSet edit being undone, rolls out web:1.5 one Pod at a time, stalls on a bad web:1.6 image, and rolls back. You kubectl · laptop OBJECTS IN THE KUBERNETES API Deployment web replicas: 3 strategy: RollingUpdate max surge 25% · max unavailable 25% ReplicaSet web-7d9f8 template: web:1.4 ReplicaSet web-5c6b4 template: web:1.5 ReplicaSet web-84f7c template: web:1.6 PODS RUNNING ON YOUR NODES Pod xk2p9 web:1.4 Running DELETED Pod m4tq7 web:1.4 Running DELETED Pod r8wz2 web:1.4 Running · new DELETED Pod j6hn3 web:1.4 Running DELETED Pod q2vd8 web:1.5 Running DELETED Pod z7kc4 web:1.5 Running DELETED Pod f5ls1 web:1.5 Running DELETED Pod w9pe6 web:1.6 ImagePullBackOff

    your command or an image pull controller action object in the API Pod

    Press Play to watch all nine steps, or step through with Back and Next. Red step tabs are where something breaks; green ones add the fix. Voice reads each step aloud with your browser's built-in speech.

    2Quiz to check understanding

    Check yourself