Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alexsjones/hello-operator

A sample project built with kubebuilder
https://github.com/alexsjones/hello-operator

demo kubebuilder kubernetes operator

Last synced: 14 days ago
JSON representation

A sample project built with kubebuilder

Awesome Lists containing this project

README

        

# hello-operator

This is a simple operator with a CRD built in Kubebuilder.

It has an Emitter type that when created will spawn a simple deployment that is created from the templates `./manifests/emitter-deployment.yaml`

To create this deployment run `kubectl apply -f ./config/samples` which will create the Emitter CRD and invoke the operators reconcile.

All the real logic is in `./controllers/emitter_controller.go`

## Up and running

- Have an existing connected Kubernetes cluster
- `make`
- `make install`
- `make run`
- `kubectl apply -f ./config/samples`