{ConfigMap|CRD}-based approach for managing the X in Kubernetes and OpenShift.
This operator uses abstract-operator library.
make build
or
./gradlew shadowJar
Run the groovy-example-operator deployment:
kubectl apply -f manifest/operator.yaml
Create new ConfigMap from the prepared example:
kubectl apply -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. Assuming the admin user is logged in, you can install the operator with:
kubectl apply -f manifest/operator-crd.yaml
and then create the Spark clusters by creating the custom resources (CR).
kubectl apply -f examples/cr.yaml
make devel
This will build the image and deploys the operator into OpenShift. It assumes the oc on PATH.