Redis Operator
  • Speculator: Redis Operator
  • Quickstart
  • Installation
    • Helm
    • Kubectl
  • Setup
    • Standalone
    • Cluster
    • Helm Configuration
  • Configuration
  • Development
  • Roadmap
  • Changelog
Powered by GitBook
On this page
  • Pre-requisites
  • Build Locally
  • Build Image
  • Testing

Was this helpful?

Development

A Development guide for redis operator

PreviousConfigurationNextRoadmap

Last updated 4 years ago

Was this helpful?

Pre-requisites

Access to Kubernetes cluster

First of all, you will need access to a Kubernetes cluster. The easiest way to start is minikube.

  • - hypervisor to run a Kubernetes cluster

  • - for Kubernetes cluster creation on local machine

  • - to interact with Kubernetes cluster

Tools to build an Operator

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

Required Tools:-

Build Locally

To achieve this, execute this command:-

make build

Build Image

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

make build-image

Testing

If you want to play it on Kubernetes. You can use a minikube.

# Start minikube
minikube start --vm-driver virtualbox

# Deploy the image on minikube
helm upgrade redis-cluster ./helm/redis-setup \
    --set redisSetup.setupMode="cluster" \
    --set redisSetup.clusterSize=3 \
    --install --namespace redis-operator

Run Tests

make test

Virtualbox
Minikube
Kubectl
Git
Go
Docker
Operator SDK
Make