Restarting a StatefulSet in Kubernetes Using UMHLens / OpenLens

A StatefulSet is a type of workload that is used in Kubernetes to manage stateful applications. Sometimes it may be necessary to restart a StatefulSet in order to troubleshoot issues or apply updates. This guide will provide you with step-by-step instructions on how to restart a StatefulSet in Kubernetes using UMHLens.

Instructions

  1. Go to Workload —> StatefulSet —> click on the relevant StatefulSet that you want to restart.
  2. In the top right corner, select the "Scale" button. Scale down to 0 replicas.
  3. Wait until all the Pods associated with the StatefulSet have been terminated. This may take some time.
  4. Optional: If you want to entirely reset the StatefulSet, you can delete the storage associated with it.
  5. Scale back up to the original amount of replicas that you had before the restart.

Video