Open jdoss opened 1 year ago
"draining" means nomad node drain
, right?
Can you share a example job definition?
Sorry for the late reply. Yes, I mean nomad node drain
. If you use the example https://github.com/hashicorp/nomad-driver-podman/blob/main/examples/jobs/nats_pod.nomad and then issue a nomad node drain
it should leave the pod container from the job behind.
If the example doesn't reproduce the issue, I can fix up the job file that I have for Netbox so I can share it, but I believe the nats pod example should reprio the issue as well.
While working on a systemd unit to drain my client nodes of jobs before shutdown, I noticed that if you have a job that uses podman pods, it does not remove the pods as part of the drain:
These are left over after a few drains testing the unit.