FAQs about OperatorHub and the OLM
These questions relate to the building, shipping, and deployment of Operators. Topics covered include installing Operators with the OLM and submitting Operators to OperatorHub. These topics come from Chapter 6, Building and Deploying Your Operator, and Chapter 7, Installing and Running Operators with the Operator Lifecycle Manager.
What are the different ways to compile an Operator?
Like many cloud-native applications, an Operator can be compiled either as a local binary or built into a container image suitable for deploying directly onto a Kubernetes cluster. The Operator SDK provides commands to do both.
How does a basic Operator SDK project build a container image?
The Operator SDK provides Makefile
targets to build a Docker image with make docker-build
. By default, this copies the main Operator source code (specifically, the main controller and API) along with its assets
directory to the Docker image.