title: How to do Redis slave repalication in k8s cluster?
body: <p>By this famous guestbook example: </p>
  
  <blockquote>
    <p><a href="https://github.com/kubernetes/examples/tree/master/guestbook" rel="nofollow noreferrer">https://github.com/kubernetes/examples/tree/master/guestbook</a></p>
  </blockquote>
  
  <p>It will create Redis master/slave deployment and services. It also has a subfolder named <code>redis-slave</code> which used for create a docker image and run Redis replication command.</p>
  
  <ul>
  <li>Dockerfile</li>
  <li>run.sh</li>
  </ul>
  
  <p>The question is, if deployed the Redis master and slave to the k8s cluster. Then how to run that command? Deploy a new container? That will not relate to the slave container already deployed.</p>
  
  <p>Is there a better way to do Redis repliaciton between master and slave running in k8s cluster?</p>