Introduction to the OperatorSDK

2020-12-09

Want to try Equinix Metal? Use the code "rawkode-live" for $50 of credit, which is roughly 100 hours of compute on our smaller instances. Sign up at https://equinixmetal.com

---

This Operator SDK is a component of the Operator Framework, an open source toolkit to manage Kubernetes native applications, called Operators, in an effective, automated, and scalable way.

The Operator SDK provides the tools to build, test, and package Operators. Initially, the SDK facilitates the marriage of an application’s business logic (for example, how to scale, upgrade, or backup) with the Kubernetes API to execute those operations. Over time, the SDK can allow engineers to make applications smarter and have the user experience of cloud services. Leading practices and code patterns that are shared across Operators are included in the SDK to help prevent reinventing the wheel.

The Operator SDK is a framework that uses the controller-runtime library to make writing operators easier by providing:

- High level APIs and abstractions to write the operational logic more intuitively
- Tools for scaffolding and code generation to bootstrap a new project fast
- Extensions to cover common Operator use cases


🕰 Timeline


00:00 - Holding
00:30 - Introductions
03:20 - What is an operator / What is Operator SDK
06:15 - Creating a new operator
13:50 - Adding fields to our custom resource definition
15:40 - Adding our business logic / Reconcile
24:00 - Deploying / running our operator on a Kubernetes cluster


🌎 Resources

Dennis Kelly - https://twitter.com/DennoVonDiesel

Operator Framework - https://operatorframework.io/