Skip to content

1995parham-learning/operator101

Repository files navigation

Operator 101

Introduction

I am using this repository for learning how I can write a Kubernetes operator.

How to initialize?

operator-sdk init --domain parham.home --repo github.com/1995parham-learning/operator101
operator-sdk create api --group hello --version v1alpha1 --kind Helloer --resource --controller

How to run?

make build

You need to have OLM on your cluster to better use operators:

operator-sdk olm install

Then you can bundle the operator and install it:

make bundle
operator-sdk run bundle

By making bundle, you will make a cluster service version which is defined in config/manifests/bases/operator101.clusterserviceversion.yaml.