{ConfigMap|CRD}
-based approach for managing the X in Kubernetes and OpenShift.
This operator uses abstract-operator library.
make build
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
make devel
This will build the image and deploys the operator into OpenShift. It assumes the oc
on PATH
.