Stop, Restart, and Delete a Cluster

Learn how to stop, restart, and delete a Kubernetes cluster.

Stop and restart a cluster

In some cases, we want to delete our experimental Kubernetes cluster to reclaim the resources. On Educative, it’s not necessary to do so, but if you’re using it locally you might want to do that. In which case, between the session, you will need to stop and restart the local cluster in the place where you finished earlier.

As the entire cluster is running inside a Docker container, we’ll use its API to manipulate it.

First, let’s check what the name of the container (which should be the default one, kind-control-plane) is by running the following command:

Get hands-on with 1200+ tech skills courses.