<p>When you edit a deployment to update the docker image, I need to run a one-time script which changes parts of my application database and sends an email that the rolling upgrade process is complete and the result is passed / failed.</p>
<p>Is there a hook where I can attach this script to?</p>

Devaroop
<p>As far as I know, Kubernetes does not provide anything to support such functionality out of the box but you modify the script to check the status of the rollout using the following command with some sleep:</p>
<pre><code>kubectl rollout status deployment/&lt;deployment-name&gt;
</code></pre>
