<p>I am testing a pre-upgrade hook which just has a bash script that prints a string and sleep for 10 mins. When I run helm upgrade, it ran for some time and exited with the error in the title. I used kubectl to check the job and it was still running. Any idea on how to get rid of the error?</p>
<p>Thanks</p>
<p>The script in the container that the job runs:</p>
<pre><code>#!/bin/bash

echo &quot;Sleeping for testing...&quot;
sleep 600
</code></pre>

Fan Zhang
<p>Use <code>--timeout</code> to your helm command to set your required timeout, the default timeout is <code>5m0s</code>.</p>
<pre><code>$ helm install &lt;name&gt; &lt;chart&gt; --timeout 10m30s
</code></pre>
<blockquote>
<p><code>--timeout</code>: A value in seconds to wait for Kubernetes commands to complete. This defaults to 5m0s (5 minutes).</p>
</blockquote>
<p>Helm documentation: <a href="https://helm.sh/docs/intro/using_helm/#helpful-options-for-installupgraderollback" rel="noreferrer">https://helm.sh/docs/intro/using_helm/#helpful-options-for-installupgraderollback</a></p>
