title: k8s - Pod restart time
body: <p>I was running this to see how job restart works in k8s.</p>
  
  <pre><code>kubectl run alpine --image=alpine --restart=OnFailure -- exit 1
  </code></pre>
  
  <p>The alpine image was already there. The first failure happened almost within a second. k8s takes 5 minutes to do 5 restarts! why does it not try immediately? Is there any way reduce the time between 2 restarts?</p>
  
  <p><a href="https://i.stack.imgur.com/fImXZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fImXZ.png" alt="enter image description here"></a></p>