In this chapter, we will start writing a Kubernetes Operator, Kluster, that is going to provision Kubernetes cluster on Digital Ocean dynamically. We will introduce a new type of Kluster using CRDs and register that type using Scheme. We will also generate DeepCopy functions, clientset, informers, and listers for the new type (Kluster) that we have introduced. Apart from that, we will look into how we can use controller-gen to generate CRD for the type.
Writing Kubernetes Operator (Kluster) from Scratch
Generating ClientSet/Informers/Lister for custom resource
Implementing add and delete handler function
Interacting with DigitalOcean APIs on Kluster's add event
SubResources and additional printer columns for CRDs
Event recorder for Kluster custom resource
Packaging (containerise and RBAC) your K8S operator
Have feedback about this course or lesson? We want to hear it! Send your thoughts to email@example.com.