When a Node fails, any Pods running on it are lost. If those Pods are managed by a controller such as a Deployment, replacements will be started on other Nodes in the cluster.
Note: If your cluster is on a cloud that implements Node pools, the failed Node may also be replaced. This is a Node pool and cloud infrastructure feature, not a feature of Deployments.
You can only follow the steps in this section if you have a multi-node cluster and the ability to delete Nodes. If you build a multi-node cluster on LKE, as was explained in Chapter 3, you can follow along. If you are using a single-node Docker Desktop cluster, you will have to be satisfied with reading along.
The following command lists all of the Pods on your cluster and the Node each Pod is running on. The command output has been trimmed to fit the component.
kubectl get pods -o wide