Ensure you have kubectl and minikube installed. It's configured to run with docker
driver.
make minikube-start
to create and start the cluster.kubectl apply -f ./djs/crd.yaml
to register the custom resource.make docker-image
to build docker image.minikube image load djs-demo:1.0
to load the docker image from your local docker into minikube.- In
mocker
directory runmake service-on-minikube
. This will build & load docker image of mock service and start it in the cluster. kubectl apply -f ./example-rbac.yaml
so Operator has access to the k8s API.kubectl create -f ./example-djs.yaml
to create a k8s object ofDynamicJobScheduler
kind.kubectl get jobs
to observe jobs being created, their naming will bedjs-job-<person name>-<uuidv4>
.- Use
kubectl logs -f <the name of the djs-operator pod>
to observe what the Operator is processing.
To run step 5 you need to have a Python VirtualEnv created and packages installed with pip install -r requirements.txt
.