<p>I have a container that will start a jetty server. It takes about 1 minutes to start
The Pod says it is started even tho the server is still starting.</p>

<p>Is there a way to wait until for the container to finish starting before the pod says it is ready?</p>

<p>I tried adding a readiness probe but it fails because the server has not started</p>

<pre><code>"readinessProbe": {
  "httpGet": {
    "path": "/api/health",
    "port": 8080,
    "scheme": "HTTP"
  },
</code></pre>

<p>Use <code>initialDelaySeconds</code> attribute in readinessProbe as explained at <a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#define-readiness-probes" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#define-readiness-probes</a></p>

<p>for example, add 60 seconds delay before you run first test</p>

<p>initialDelaySeconds: 60</p>
