{ConfigMap|CRD}-based approach for managing the X in Kubernetes and OpenShift.
This operator uses abstract-operator library.
make buildor
./gradlew shadowJarRun the groovy-example-operator deployment:
kubectl apply -f manifest/operator.yamlCreate new ConfigMap from the prepared example:
kubectl apply -f examples/cm.yamlFor 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.yamland then create the Spark clusters by creating the custom resources (CR).
kubectl apply -f examples/cr.yamlmake develThis will build the image and deploys the operator into OpenShift. It assumes the oc on PATH.