Static website, mission 2 of 7
Pods that heal
beginner, about 8 minutes, in the Kubernetes Simulator
Opens once you pass Your first pod.
The briefing
A lone pod has no one looking after it. A Deployment does: you declare how many copies (replicas) you want and of which image, and its controller keeps reality matching — making pods when there are too few and removing them when there are too many.
Under the hood a Deployment makes a ReplicaSet, and the ReplicaSet makes the pods. Their names show the chain: web-<template hash>-<random>.
Your pod from the last mission is still here. Replace it with something that heals.
What you'll do
- Create a deployment called web running 3 replicas of nginx:1.27
- Delete the lone pod called web
- Delete one of the deployment's pods and watch it come back
- Bonus star: Look at the ReplicaSet the deployment made
The mission checks the cluster, not your keystrokes: any fix that works, passes.
More Static website missions
- 1. Your first pod
- 2. Pods that heal
- 3. Give it an address
- 4. Look inside
- 5. Launch day
- 6. Ship v2
- 7. The 3am page