Quickstart
In this document you will find a step-by-step guide on how to get redis-operator running in a local Minikube cluster. You will run a simple standalone and cluster mode of Redis.

Pre-requisites

In order to setup redis-operator, you'll need access to a Kubernetes cluster:-
  • Virtualbox - hypervisor to run a Kubernetes cluster
  • Minikube - for Kubernetes cluster creation on local machine
  • Kubectl - to interact with Kubernetes cluster

Deploying Redis Operator(Minikube)

Start a local minikube cluster

Minikube is a minimal Kubernetes cluster run in a virtual machine (here in VirtualBox).
1
minikube start --vm-driver virtualbox
Copied!
From now on your local Kubernetes client kubectl is configured to use your just started Minikube cluster.

Create a new namespace

First, we need to create a namespace for our resources to be deployed in. This is for the sake of separation and keeping order:
1
kubectl create namespace redis-operator
Copied!
Redis operator by default watches for every change in Redis Configuration.

Standalone Redis Setup

1
kubectl apply -f example/redis-standalone-example.yaml -n redis-operator
Copied!

Cluster Redis Setup

1
kubectl apply -f example/redis-cluster-example.yaml -n redis-operator
Copied!

Cleanup

1
# To delete standalone setup
2
kubectl delete -f example/redis-standalone-example.yaml -n redis-operator
3
# To delete cluster setups
4
kubectl delete -f example/redis-cluster-example.yaml -n redis-operator
Copied!
Last modified 1yr ago