Kubernetes Operators Flashcards
Explain the concept of a Kubernetes operator and its role in managing applications
a method for application packaging and deployment that extends Kubernetes’ capabilities to manage more complex, stateful workloads (like databases)
Provide an example of a scenario where using an operator would be beneficial
databases
What are CustomResourceDefinitions (CRDs) in Kubernetes, and how do they relate to operators?
- Extend the Kubernetes API
- build custom automation
- store validated resource data in etcd.
Can you walk us through the process of creating a custom operator using CRDs?
Create a CustomResourceDefinition in a yaml file then create the “object” in another yaml file as defined by the CRD (containing the required parameters)
In the context of Kubernetes operators, what is the “Operator Lifecycle Manager” (OLM)?
Provides a declarative way to install, manage, and upgrade Operators on a cluster
Why is OLM important for managing operator lifecycle?
- manage automatic updates
- help express dependencies
- enable discoverability
- prevents Operator API conflicts