Skip to content

support ownerReferences to clean up worker pods after notebook exits #210

@yuvipanda

Description

@yuvipanda

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions