Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubedock does not remove pods after test finishes #27

Closed
rcgeorge23 opened this issue Oct 5, 2022 · 3 comments
Closed

Kubedock does not remove pods after test finishes #27

rcgeorge23 opened this issue Oct 5, 2022 · 3 comments

Comments

@rcgeorge23
Copy link
Contributor

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.

@joyrex2001
Copy link
Owner

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?

@rcgeorge23
Copy link
Contributor Author

Yep, I will try

@rcgeorge23
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants