In this video we talked about what exactly are Kubernetes finalizers and how they are useful in making sure that we can make sure a condition is met before the Kubernetes resource is deleted.
Apart from that we also looked into how we can implement a respecitve controller for the finalizer that wold delete it, once that condition is met.
Kluster Playlist:
https://youtu.be/89PdRvRUcPU
Kluster GitHub repo:
https://github.com/viveksinghggits/kluster
Web:
https://viveksingh.dev/
00:00 Introduction
00:22 Agenda
00:34 What are Kubernetes Finalizers/Use case
01:46 Example using PV protection finalizer
07:20 Who adds finalizers to the resources
10:00 Multiple finalizers on a resource
13:54 What are we going to implement
20:44 Actually implementing the finalizer controller
32:15 Implementing the method to delete the finalizer
43:47 Building and deploying updated code
44:55 Creating and deleting the Kluster resource
46:34 Summary, Like and Subscribe