Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 1.32 KB

README.md

File metadata and controls

54 lines (34 loc) · 1.32 KB

my-new-operator

Build status License

{ConfigMap|CRD}-based approach for managing the X in Kubernetes and OpenShift.

This operator uses abstract-operator library.

Build

make build

Quick Start

Run the my-new-operator deployment:

kubectl create -f manifest/operator.yaml

Create new ConfigMap from the prepared example:

kubectl create -f examples/cm.yaml

For deployment on OpenShift use the same commands as above, but with oc instead of kubectl.

This operator can also work with CRDs. For OpenShift, we are assuming the admin user is logged in (oc login -u system:admin) and you have switched the project to "default" (oc project default).

you can install the operator with:

kubectl create -f manifest/operator-crd.yaml

and then create the Spark clusters by creating the custom resources (CR).

kubectl create sparkcluster -f examples/cr.yaml

Development

make devel

This will build the image and deploys the operator into OpenShift. It assumes the oc on PATH.