From the course: Learning Kubernetes

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Delete your Kubernetes objects and tear down your cluster

Delete your Kubernetes objects and tear down your cluster - Kubernetes Tutorial

From the course: Learning Kubernetes

Delete your Kubernetes objects and tear down your cluster

- [Instructor] We've arrived at the end of this chapter, and we no longer need our minikube cluster. Minikube is a resource-intensive application, so unless you want your computer to melt, it's best to clean up your cluster and stop it when you're not using it. The first thing we want to do is delete any Kubernetes resources we created. We'll do that using the YAML files. Here's a list of files that we used. We can delete the objects in these files by running kubectl delete -f and the name of the file. I'm going to go through and do that one by one. Kubectl delete, busybox. Kubectl delete the file deployment, Kubectl delete the file quote, Kubectl delete the file service, and finally, kubectl delete the file namespace. Make sure you delete the namespace last because it will destroy anything inside of it when it is deleted. You could also do it first if you only want to run one command. Finally, let's delete our…

Contents