- Build your image with
IMG
tag:
export IMG=<some-registry>/dragonfly-operator:tag
make docker-build
- Make the image available to the cluster:
Note
If you are using
kind
, You can load the image instead of pushing to a registry by runningmake docker-kind-load IMG=<some-registry>/dragonfly-operator:tag
make docker-push
- Deploy the controller to the cluster with the image specified by
IMG
:
make deploy
- Verify that the controller is running, and CRD's are installed:
➜ watch kubectl -n dragonfly-operator-system get pods
NAME READY STATUS RESTARTS AGE
dragonfly-operator-controller-manager-7b88f9d84b-qnj4c 2/2 Running 0 13m
➜ kubectl get crds
NAME CREATED AT
dragonflies.dragonflydb.io 2023-04-03T13:29:18Z
- Install a sample instance of Custom Resource:
kubectl apply -f config/samples/v1alpha1_dragonfly.yaml
- Check the status of the instance:
kubectl describe dragonfly dragonfly-sample
To delete the CRDs from the cluster:
make uninstall
UnDeploy the controller from the cluster:
make undeploy