Only one replica does the jobadvanced
A background job runs in every replica unless they coordinate; a lock makes them take turns, but only a marker for the interval makes the job happen once.
A background job runs in every replica, so the ops team gets every report twice, and one exception ends the job for good. Make the pods take turns, make the job happen once per interval, and keep it alive.
A Redis lock taken without waiting and released with the handle, an interval marker so the work happens once, and a loop that survives a failed run.
Published in full, before you start — every point is one of these and there is nothing else.
A background job runs in every replica unless they coordinate; a lock makes them take turns, but only a marker for the interval makes the job happen once.
A healthcheck is how the platform knows to restart your container, and running as a non-root user is how a bug stops being a breach.