SwissDataScienceCenter / amalthea

A kubernetes operator for spawning and exposing interactive user session servers.
Apache License 2.0
14 stars 4 forks source link

feat(idle): implement idle checking #740

Closed sgaist closed 1 month ago

sgaist commented 2 months ago

Describe your changes

This PR implements idle checks in a similar fashion as the one done in python using the metrics server to retrieve the cpu usage of the pod.

Once the check passes, it will put the session in hibernated state which should trigger its deletion after the delay configured has passed.

Issue ticket number and link

Part of: #616 Part of https://github.com/SwissDataScienceCenter/renku/issues/3679