kubedock
kubedock copied to clipboard
Kubedock does not remove pods after test finishes
I am using java / junit / testcontainers with Kubedock to spin up a bunch of containers for a test.
After the test has finished, the containers are not removed immediately, but they are eventually cleaned up after an hour or so.
Is this expected behaviour?
To get around this I have added an afterAll hook that explicitly removes the pods, which works fine, but I wonder whether something is misconfigured as from the docs it sounds like pod removal should happen automatically after the test has finished.
It doesn't look to be the case always and I haven't been able to reproduce myself. Do you have a small project which can trigger this behaviour?
Yep, I will try
Closing this as I think I had misunderstood kubedock's role in cleaning up old pods. Kubedock does indeed reap old pods after 60 minutes if a test doesn't end gracefully. I think it's the responsibility of the user to ensure that pods are removed at the end of the test run.