Categories
docker Kubernetes

Kubernetes: redis-cluster on GKE (Google Kubernetes Engine)

My goal was to create a redis-cluster with one command. I was able to accomplish this by using a kubernetes job. It wasn’t the ideal solution due to all the additional Terminated: Error pods it leaves behind, but it is however a solution. There are two things you need to pay attention to. namespace: itsmetommy […]

Categories
docker

docker-compose redis-cluster

Clone git repository Updated: June 25, 2020 Clone the repo. https://github.com/itsmetommy/docker-redis-cluster cd into repo. cd docker-redis-cluster Build and start all containers docker-compose up –build -d Example docker-compose up –build -d Creating network “docker-redis-cluster_redisnet” with driver “bridge” Building redis-1 Step 1/7 : FROM redis:latest —> 63130206b0fa Step 2/7 : MAINTAINER Tommy Elmesewdy r1tommy@gmail.com —> Using cache […]

Categories
docker Kubernetes

Kubernetes: redis-master on GKE (Google Kubernetes Engine)

If you wish to use your own namespace for this installation, be sure to replace itsmetommy with your own. Create namespace kubectl create ns itsmetommy This will create a stateful redis-master with a persistent drive on GKE (no slaves or sentinels). Clone git repository https://github.com/itsmetommy/kubernetes-redis-master Create kubectl -n itsmetommy apply -f . Example kubectl -n itsmetommy apply -f . […]

Categories
docker Kubernetes

Kubernetes: redis-master with Minikube

This will create a redis-master using Minikube (no slaves or sentinels). If you wish to use your own namespace for this installation, be sure to replace itsmetommy with your own. Create namespace kubectl create ns itsmetommy Clone git repository https://github.com/itsmetommy/kubernetes-redis-master Create kubectl -n itsmetommy apply -f . Example kubectl -n itsmetommy apply -f . service “redis-primary” created statefulset.apps […]

Categories
docker Linux

docker-compose redis

Clone git repository Pick your redis version and download the git repository. redis version 4 My example uses 4.0.2-alpine. https://github.com/itsmetommy/docker-redis4 redis version 2-3 My example uses 2.6.17. https://github.com/itsmetommy/docker-redis-2-3 Build and start all containers This will build all the sentinel images, then start all containers in detached mode. docker-compose up –build -d Verify that the master is […]