Writing Kubernetes plugins
In this section, we will dive into the guts of Kubernetes and learn how to take advantage of its famous flexibility and extensibility. We will learn about the different aspects that can be customized via plugins, and how to implement such plugins and integrate them with Kubernetes.
Writing a custom scheduler plugin
Kubernetes defines itself as a container scheduling and management system. As such, the scheduler is the most important component of Kubernetes. Kubernetes comes with a default scheduler, but allows for writing additional schedulers. To write your own custom scheduler, you need to understand what the scheduler does, how it is packaged, how to deploy your custom scheduler, and how to integrate your scheduler. The scheduler source code is available here:
https://github.com/kubernetes/kubernetes/tree/master/pkg/scheduler
In the rest of this section, we will dive deep into the source and examine data types, algorithms, and code.