I have persistent volumes assigned to a few of my tasks via docker volumes/mount config.
When I purge the job, the volumes are left behind.
What’s the best way to have control over persistent data deletion via Nomad, using local server storage?
Hi @james-masson, Nomad does not have the ability to control the lifecycle of volume/mount configurations. Particularly Nomad is not involved in the creation of the volume, and therefore cannot be responsible for the deletion.
Assuming the purge is performed either by hand, or using some CI/CD trigger, I would suggest a small wrapper script that could perform both the job purge and the volume deletion.
jrasell and the Nomad team.