Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Latest commit

 

History

History
59 lines (39 loc) · 1.58 KB

DEVELOPMENT.md

File metadata and controls

59 lines (39 loc) · 1.58 KB

Development

Prerequisites

Access to a Kubernetes Cluster

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
Tools to build and test Redis Operator

Apart from kubernetes cluster, there are some tools which are needed to build and test redis operator.

Required Tools:-

Build Locally

To achieve this, execute this command:-

make build

Build Operator Image

Redis operator gets packaged as a container image for running on Kubernetes cluster. These instructions will guide you to build image.

make build-image

Testing

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
Run Tests
make test