Hands-on task
Deployment: a pod that comes back
Nobody restarts a pod started with kubectl run: delete it and it's gone. That's why applications are run through a Deployment — it makes sure its pods keep running.
Create a Deployment shop from the nginx:1.27-alpine image and wait until its pod is up. Then see how it heals itself: delete that pod and make sure the Deployment brings up a new one in its place.
- kubernetes
- deployment
- kubectl create deployment
- self-healing