From the course: Kubernetes: Your First Project (2021)

Unlock the full course today

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

Solution: Deleting kind clusters with make

Solution: Deleting kind clusters with make - Kubernetes Tutorial

From the course: Kubernetes: Your First Project (2021)

Solution: Deleting kind clusters with make

(upbeat music) - All right. Another day, another challenge. Let's delete this kind cluster with me. First, I'm going to run kind dash dash help to see what options I have available for deleting clusters. As we can see, there's the delete option in plain sight. So let's rerun that with kind delete dash dash help to see what options we have and just like kind create, we can delete a single cluster. So with that information, I'm going to go into my make file and I'm going create a new rule called delete kind cluster. Now make sure that that target is also a phony target that way, if you created a file called delete client cluster somehow, this rule would still work. So now that we have our rule here, let's go ahead and put in kind delete cluster dash dash name, explorecalifornia.com. Really simple. Let's go ahead and save it. But wait, we also created a docker registry for this cluster, right? So we want to…

Contents