Page MenuHomePhabricator

`jsub` is not available to Tool labs webservice running on Kubernete
Closed, DeclinedPublic

Description

When running a Tool Labs webservice on Kubernate (wsexport) I have this error when the service tries to start a Grid Engine job: sh: 1: jsub: not found

Is it possible to make jsub available to Kubernate containers?

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Is it possible to make jsub available to Kubernate containers?

That is very unlikely to happen. K8s don't know grid and grid doesn't know k8s. If you must submit jobs you can either make the webservice run on grid, or submit the job to k8s.

That is very unlikely to happen. K8s don't know grid and grid doesn't know k8s. If you must submit jobs you can either make the webservice run on grid, or submit the job to k8s.

Ok! Is it planned to have an easy way to submit job to k8s (I don't find anything on Tools Labs help pages)?

bd808 subscribed.

Ok! Is it planned to have an easy way to submit job to k8s (I don't find anything on Tools Labs help pages)?

For now, if you a have a webservice that for some reason needs to spawn separate jobs, I would recommend using the grid engine backend to run your webservice as well as the jobs.

In the long term, yes we would like to have a nice way to support one-off job submission on Kubernetes. We really do not want to create custom tooling for this however. Today it is possible via direct usage of kubectl, but I would not recommend wide usage such features. See similar discussions at T158155#3037370. The long term fix will be to select and deploy a platform as a service layer for Kubernetes in Tool Labs (T136264).