Disable cull service for specified nodes

I have a scenario where I want the pods of some specific users to run on specific worker nodes by using the typical native scheduling methods of k8s.

Those user pods though must not be interrupted by the cull service, they must run indefinitely once the users have spawned them and unless they manually stop them.

Is it possible to configure the cull service in way that ignores the user pods that are running on this node?

It’s not possible with the current idle-culler. There are ongoing discussions about how to make it more customisable

It’s essentially a single script, so for now I think your best option is to copy the script

and customise it. It only uses the public JupyterHub rest API

but you’re obviously free to make calls to the Kubernetes API, or anything else, in your customised version.

1 Like