From the course: Automating Kubernetes with GitOps

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Creating a custom operator

Creating a custom operator

- In this video, I will show you how you can create a custom operator. We'll take it easy to start with so that you get an idea of what an operator is all about before we can bring everything together in a bigger demo. So before we get started, we need to understand what the operator needs to do. Well, the operator needs to automatically perform actions on specific events. Again, an operator replaces a person, so it should do everything that normally a person would want to do, but in an event-driven, automated way. So the essence is that events should be monitored, and in Kubernetes, any event can be monitored. Think about resource creation, modification, and much more. And this monitoring allows the operator to set up an environment for running an application to move an application forward to the next stage or anything else that you could imagine. So how are operators monitoring for change? To run an operator, the operator needs to be able to detect changes to Kubernetes resources…

Contents