Public | Automated Build

Last pushed: 2 years ago
Short Description
redis docker image customed for redis cluster
Full Description

Kubernetes Redis Cluster By ReplicaSet

This repo is inspired by Kelsey Hightower's kubernetes-redis-cluster. But I have remove the usage of google cloud platform disk which makes it more flexible to deploy. And I have include redis.conf in the new image by the Dockerfile in the repo.

Create Redis Nodes

kubectl create -f replicasets

Create Redis Services

kubectl create -f services

Connect Nodes

kubectl run -i --tty redis-trib --image=softputer/redis-trib \
  --restart=Never /bin/bash
./redis-trib.rb create --replicas 1 \ \ \ \ \ \

The IP above can be either pod ip or service ip. After executing the command successfully, you will get a reds cluster with 3 masters and 3 slaves.

Add a new node

kubectl create -f replicaset/redis-7.yaml
kubectl create -f services/redis-7.yaml
Docker Pull Command