-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
support ownerReferences to clean up worker pods after notebook exits #210
Comments
Ah nice! There is an assumption here that |
@jacobtomlinson yeah, agree. One easy way to test this would be to allow specifying fields under |
Sounds good! Is this something you have the time to contribute? |
I think this is done now. I've been able to set the
and you need to have the environment variables on the pod that's running the scheduler (in local mode)
I'm using dask==2.23.0 and dask-kubernetes==0.10.1 |
The classic |
Kubernetes offers 'garbage collection' of objects - when an object is deleted, it can automatically delete other objects.
In our case, when a notebook pod that spawned dask workers is deleted, the dask workers should get deleted too.
This is fairly straightforward to implement: https://kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/
I can't put this in the worker template since you can't seem to affect metadata from there?
The text was updated successfully, but these errors were encountered: