Right now webservice has a very handy subcommand webservice shell to launch a pod running a specific image in the Kubernetes cluster. Since the same feature is very useful when working with jobs-framework too, it'd be nice if the command name would not suggest it was a webservice-specific feature.
Description
Description
Event Timeline
Comment Actions
My solution for tool persondata:
in ~/.profile I added the following line:
[ -z "$PERSONDATA_PORT" ] && trap "kubectl delete pods -l 'app.kubernetes.io/component=webservice-interactive'" 0 15
So when I log out all webshells get killed.
However if one need for whatever reason a permanent webshell, this is no solution
Comment Actions
We might want to run a continuous job using jobs-api, and then kubectl exec into it instead of using kubectl run directly (so jobs-api handles the creation of the pod and such).
Comment Actions
That was the request in https://phabricator.wikimedia.org/T410138, which was closed as a duplicate of this, so I assume that is the direction this is committed to now.