title: Pod deletion for StatefulSet of redis cluster doesn't restore the cluster-state of redis
body: <p>I have used redis:5.0.1-alpine in my statefulset, the stateful set has 6 pods and the redis cluster formation is done using below command </p>
  
  <p>redis-cli --cluster create {IPlist is placed here} --cluster-replicas 1</p>
  
  <p>Now in case the pods get accidentally deleted or the AKS gets out of service, then the pods when create after AKS resumes will have different IP.</p>
  
  <p>I tried by deliberately deleting the pods, when the pods get recreated then the cluster state changes to "fail" ( which was "ok" when the cluster was initially created)</p>
  
  <p>Also when I try to get the old data set into cluster, a message appears telling that "cluster is down" </p>
  
  <p>I have displayed the code for redis.conf file used for cluster creation</p>
  
  <pre><code>apiVersion: v1
  kind: ConfigMap
  metadata:
    name: redis-cluster
    namespace: redis
  data:
    update-node.sh: |
      #!/bin/sh
      REDIS_NODES="/data/nodes.conf"
      sed -i -e "/myself/ s/[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0- 
      9]\{1,3\}/${POD_IP}/" ${REDIS_NODES}
      exec "$@"
    redis.conf: |+
      cluster-enabled yes
      cluster-require-full-coverage no
      cluster-node-timeout 15000
      cluster-config-file /data/nodes.conf
      cluster-migration-barrier 1
      appendonly yes
      protected-mode no
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/mUFdO.png" rel="nofollow noreferrer">issue description snapshot</a></p>
  
  <p>Redis Cluster Nodes and Slots related data is as attached
  <a href="https://i.stack.imgur.com/85e4a.png" rel="nofollow noreferrer">redis cluster nodes and slots </a></p>