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