<p>I am using k8s to deploy my docker apps.</p>
<p>Once app is stated it took 20-30s to be ready, app is huge it took some time while booting.</p>
<p>Boot average time is 20-30s. I would like to wait for 60s during the rolling update. Because for now, old pod is terminated while booting new app (in new pod).</p>
<p>How can I do it?</p>

nirebam368
<p>Configure <a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/" rel="nofollow noreferrer">readiness probe and startup probe</a> in the pod spec with a <code>failureThreshold * periodSeconds</code> long enough to cover the worse case startup time.As an example.</p>
<pre><code>ports:
- name: readiness-port
  containerPort: 8080
  hostPort: 8080

readinessProbe:
  httpGet:
    path: /healthz
    port: readiness-port
  failureThreshold: 1
  periodSeconds: 10

startupProbe:
  httpGet:
    path: /healthz
    port: readiness-port
  failureThreshold: 30
  periodSeconds: 10
</code></pre>
