Everything you made so far is a bare Pod: a Pod you asked for directly with kubectl run.
Delete one and it is gone
learner@shallows:~$ kubectl delete pod lonely
pod "lonely" deleted
learner@shallows:~$ kubectl get pods
No resources found in default namespace.Nothing brings it back, because nothing was asked to. Kubernetes only knew about lonely because you typed one line, once.
Containers restart, Pods do not
There is one kind of repair Kubernetes does on its own. If the container inside a Pod stops, the kubelet starts it again, inside the same Pod. That is the RESTARTS column, and that is a crash loop. The Pod keeps its name and its IP.
But if the Pod is deleted, or the node it runs on dies, a bare Pod is simply gone.
Controlled Pods come back
Look at a Pod with a generated name:
learner@shallows:~$ kubectl describe pod web-x7k2p
Name: web-x7k2p
Controlled By: ReplicaSet/webControlled By names a controller: an object that wants a number of Pods to exist and makes them from a template. Delete web-x7k2p and the controller notices one Pod is missing and makes web-m2q8n. The name changes; the count does not.
This is why you almost never run bare Pods for real work. You run a controller and let it do the worrying. Chapter 3 is about the controllers. The lab shows the difference first.