Long idle pods
Running an idle deployment
In case you need to have an idle pod in the cluster, that might ocassionally do some computations, you have to run it as a Deployment. Deployments in Nautilus are limited to 2 weeks (unless the namespace is added to exceptions list and runs a permanent service). This ensures your pod will not run in the cluster forever when you don't need it and move on to other projects.
Please don't run such pods as Jobs, since those are not purged by the cleaning daemon and will stay in the cluster forever if you forget to remove those.
Such a deployment can not request a GPU. You can use the
as the command if you just want a pure shell, and
ubuntu or any other general image you like.
Follow the guide for creating deployments and add the minimal requests to it and limits that make sense, for example:
Example of running an nginx deployment:
- image: nginx
Quickly stopping and starting the pod
If you need a simple way to start and stop your pod without redeploying every time, you can scale down the deployment. This will leave the definition, but delete the pod.
To stop the pod, scale down:
To start the pod, scale up: