First of all, you will need access to a Kubernetes cluster. The easiest way to start is minikube.
- Virtualbox - hypervisor to run a kubernetes cluster
- Minikube - for kubernetes cluster creation on local machine
- Kubectl - to interact with kubernetes cluster
Apart from kubernetes cluster, there are some tools which are needed to build and test redis operator.
Required Tools:-
To achieve this, execute this command:-
make build
Redis operator gets packaged as a container image for running on Kubernetes cluster. These instructions will guide you to build image.
make build-image
If you want to play it on Kubernetes. You can use minikube.
# Start minikube
minikube start --vm-driver virtualbox
# Deploy the image on minikube
helm upgrade redis-cluster ./helm/redis-setup -f ./helm/redis-setup/cluster-values.yaml \
--set setupMode="cluster" --set cluster.size=3 \
--install --namespace redis-operator
make test