<p>I would like to get invoke some API for notification when a CronJob starts and completes.</p>

<p>I can have a initcontainer that invokes the API to inform that the Job got started. But, Is there any way to invoke the API just before the pod dies. I dont want this logic in the CronJob main container.</p>

user1578872
<p>Kubernetes provides an API which supports <code>watch</code>, so you are immediately notified when changes of the kubernetes state happens.</p>

<p>This way you can listen for creation/completion/deletion of <code>Job</code> objects. </p>

<p>You can use the API from inside and outside the Kubernetes cluster, as long as the API server is reachable.</p>
