A replicated Redis setup running in GKE with GCE persistent storage and autoscaling, implemented with StatefulSet's.
kubectl create namespace redis-rs
kubectl apply -f 01-hdd.yaml
kubectl apply -f 02-redis-master.yaml
kubectl apply -f 03-redis-service.yaml
kubectl apply -f 04-redis-sentinel-service.yaml
kubectl apply -f 05-redis-statefulset.yaml
kubectl apply -f 06-redis-sentinel-statefulset.yaml
kubectl apply -f 07-autoscaler.yaml
kubectl scale statefulset --namespace=redis-rs redis --replicas=3
kubectl scale statefulset --namespace=redis-rs redis-sentinel --replicas=3
kubectl delete pods --namespace=redis-common redis-master