Test a Pod Failure

A step-by-step guide to test a Pod failure.

We'll cover the following

A simple way to test a failure is to manually delete a Pod. This will delete the Pod but not the associated PVC. The StatefulSet controller will notice the observed state varys from the desired state, realize that a Pod has been deleted, and start a new identical Pod in its place. This new Pod will have the same name and will be connected to the same PVC.

Let’s test it.

Confirm that you have three healthy Pods in your StatefulSet.

Get hands-on with 1200+ tech skills courses.