Skip to main content

6. Lab: deploy, scale & roll back

Hands-on — create a Deployment, scale it, and perform a rolling update + rollback.

⏱ ≈ 25 min this module · 📚 ≈ 6.9 h full track

🔒 Unlock this course to read the material and run the labs.

See options to unlock →
🔒 The written material unlocks with the course.
🧪 Hands-on lab Medium · 160 XP · 25min

Goal

Create a Deployment, scale it, then roll out a new image version.

Requirements (your default namespace, lab)

  • A Deployment web running nginx:1.24, 3 replicas
  • Update the image to nginx:1.25 and let the rollout complete
  • All 3 replicas Ready on the new image

Use kubectl set image / kubectl scale, or edit deploy.yaml and re-apply.

🔒 Unlock the course to run this lab.