<p>I am using a ReplicationController to create a pod running redis container.</p>

<p>The redis container is monitored by Redis Sentinel.  And there is a problem, if redis crashed and restart too fast, it may cause trouble to Redis Sentinel when the voting is in progress. </p>

<pre><code>{
  "apiVersion": "v1",
  "kind": "ReplicationController",
  "metadata": {
    "name": "redis",
    "labels": { "name" : "redis" }
  },
  "spec": {  
    "replicas": 1,
    "selector": {
      "name":"redis"
    },
    "template": { 
      "metadata": {
        "labels": {
          "name":"redis"
        }
      },
      "spec": { 
        "volumes": [
            //...
        ],
        "containers": [
          //...
        ],
        "restartPolicy": "Always"
      }
    }
  }
}
</code></pre>

<p>Would it be possible to delay the restart ? i.e.  Restart the container after 60 seconds from last crash</p>

<p>Kubelet already backs off container restarts automatically. In that case, you'll see something like the following:</p>

<p><code>
$ cluster/kubectl.sh get pods
NAME                   READY     STATUS             RESTARTS   AGE
...
mem-besteffort-zpnpm   0/1       CrashLoopBackOff   4          3m
</code></p>

<p>If you find that it restarts the containers too frequently, you could do something as simple as sleep 60 before executing the actual command.</p>
