Learn how to clean up persistent volumes and the associated services that were using them.
- [Instructor] Let's solve our storage challenge.…If we look in our module directory here,…we have a storage solution and we still…have our host name volume available to us as well.…So if we look at the storage solution file,…the first thing we have to do…is we have to remove the stack.…So we'll do that first.…Kubectl delete -f hostname-volume.yaml.…And this will actually take a minute to delete…because it's actually trying to make sure…that it disconnects itself properly…from the persistent volume that lives underneath this stack.…
Now be aware that my solution here is a little bit greedy,…because it will pull all of the persistent volumes…into a list and ask the system…to delete all of the persistent volumes.…We'll have a look…at the persistent volumes that are available first,…before we actually delete them.…Just as soon as this completes.…Which will, I guess, take another couple seconds.…All right, now that the persistent volume claim is deleted…as well as the deployment, if we kubectl get pv,…we see we have only one.…
Author
Released
11/27/2018- Setting up Kubernetes on AWS
- Scaling EKS workers
- Adding EKS storage and networks
- Configuring application security
- Monitoring EKS deployments
Skill Level Beginner
Duration
Views
Related Courses
-
Learning Kubernetes
with Karthik Gaekwad2h 19m Intermediate -
Kubernetes: Native Tools
with Karthik Gaekwad46m 13s Intermediate -
Kubernetes: Microservices
with Karthik Gaekwad1h 28m Intermediate -
Kubernetes: Monitoring with Prometheus
with Robert Starmer1h 10m Intermediate
-
Introduction
-
What you should know1m 17s
-
1. Kubernetes on Amazon
-
Deployment models1m 20s
-
Build the EKS VPC3m 26s
-
Install kubectl for EKS auth3m 35s
-
Launch an EKS cluster master5m 38s
-
-
2. Scaling EKS Workers
-
Selecting worker sizing5m 48s
-
-
3. EKS Storage and Networks
-
Creating storage classes2m 59s
-
Storage persistent claims3m 41s
-
Networking and EKS3m 7s
-
-
4. EKS and Application Security
-
Network policy with Calico5m 16s
-
AWS IAM and K8s RBAC5m 41s
-
-
5. Monitoring EKS Deployments
-
Using CloudWatch with EKS2m 41s
-
K8s native: Prometheus5m 44s
-
-
Conclusion
-
Next steps41s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: ✓ Solution: Find and remove PVs