kubernetes-operator-dgraph is a Kubernetes operator built with operator-sdk and the official Dgraph Helm charts. It aims to simplify deployments of Dgraph clusters by abstracting away the Kubernetes resources behind a custom resource definition.
Many resources use the namespace roshanbhatia.com
to signify that this is a community-driven project, not an official one.
Before getting started, ensure that you have the following dependencies installed on your system:
- Docker - Installation Guide
- Kubernetes (Kind) - Installation Guide
- Create a local kind cluster using the following command:
make create-kind-cluster
- Build the operator's docker image.
make docker-build
- Load the image into the kind cluster:
make load-image-to-kind
- Deploy the docker image to kind:
make deploy
- Deploy the Dgraph custom resource sample to kind:
make deploy-sample-to-kind
To clean up the kind cluster resources, use the following command:
make reset-kind-cluster
As stated above, this was built with: