<p>I have two environments (clusters): Production and Staging with two independent databases. They are both deployed on Kubernetes and production doesn't have a fixed schedule for new deployments but it happens on a weekly basis (roughly).</p>
<p>I would like to sync the production database with the staging database every time that a new release is deployed to production (kubernetes deployment is updated with new image).</p>
<p>Is there a way that I can set a job/cronjob to be triggered everytime this even happen?</p>
<p>The deployments are done using ArgoCD to pull the changes in the deployment manifest from a github repository.</p>

everspader
<p>I don't think this functionality is inherent to <code>kubernetes</code>; you are asking about something custom that can be implemented in a variety of ways (depending on your tool stack)</p>
<p>e.g.</p>
<p>if you are using <code>helm</code> to install to Production, you can use a <code>post-install</code> <a href="https://helm.sh/docs/topics/charts_hooks/" rel="nofollow noreferrer">hook</a> that triggers a <code>Job</code> that does what you want.</p>
<p>Perhaps ArgoCD has some post-install functionality that can also create a <code>Job</code> resource doing what you want.</p>
