Deploying Redis HA cluster in kubernetes

Why High Availability?

Redis High Availability approach.

slaveof %masterip%
> git clone
> minikube start
eval $(minikube docker-env)
> cd redis-sentinel-ha-k8s-deployment/docker
> docker build -t redis-sentinel-ha-cluster:1.0 .
Successfully built 05c1e517000a
Successfully tagged redis-sentinel-ha-cluster:1.0
> cd ..
> ls
> kubectl apply -f create-service.yaml
> kubectl apply -f create-master-deployment.yaml
> kubectl apply -f create-sentinel-deployment.yaml
> kubectl apply -f create-slave-deployment.yaml
> kubectl delete pod redis-ha-cluster-master-d1-f7cd4cc58-8md4z

Master Slave approach is not always safe.




Senior SDE @Amazon

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Introduction to Timeline in Unity

Make an Animated Record Player with me

Unity開發筆記 (VFX)

Implementing Python for Finance Part 1

Native Hybrid Or Web Apps..?? Here is how to make the right choice.

Installing Operating System on Raspberry Pi

Gympass front-end architecture redesign

5 Layers Of Information Your Bug Tickets Should Include

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sarwesh Suman

Sarwesh Suman

Senior SDE @Amazon

More from Medium

How to build a highly customizable and scalable Kafka Consumer using Goroutines?

Building and Deploying Cloud-Native Quarkus Applications to Kubernetes

Set up Multi-Datacenter Cassandra Clusters in GKE with K8ssandra and Cloud DNS

ROSETTA ERROR in starting Kafka Zookeeper on MAC M1