From the course: Kubernetes: Native Tools (2018)
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Deleting strategies for applications - Kubernetes Tutorial
From the course: Kubernetes: Native Tools (2018)
Deleting strategies for applications
- [Instructor] In our chapter so far, we've been creating pods, namespaces, updating deployments, services, et cetera. We haven't actually talked about deleting anything and freeing up resources, so let's figure out how to do that. In this example, I have, if I do a get pods, I notice I have a pod running. I have a kubectl get deployments, for deployment running as well. In order to perform or delete, you can run a kubectl delete, and in this case, I'm going to pick the deployment, hw, I'm going to delete that. So we notice, that after a few seconds, the hello world deployment, hw, was deleted. If you run a kubectl get pods, no resources found, kubectl get deployments, no resources found as well either. So that's how you perform a delete for a simple scenario. What about more complicated scenarios, like the ones we had before? For example, when we run a kubectl get pods, and let's look at a namespace, for example, the cart namespace. We had multiple cart pods running in the specific…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.