-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use case: Allow for jupyter or interactive notebooks via jobset #133
Comments
@danielvegamyhre or @ahg-g any thoughts on this? |
@kannon92 I tried this out - and it works OK for me. Could it be something about your development environment? I was using kind on ubuntu 22.04. Here is what I did: https://github.com/researchapps/jobset-jupyter |
But I don't think this uses anything with the headless service? I just turned it off, and the notebook still forwards. I think it would mostly be important if different things within a jobset (e.g., more than one pod) needed to communicate. For a one off pod serving something on a single port, we don't need JobSet / the extra DNS. |
Thanks @vsoch! I didn’t realize I could use the pod. 🙃 so in our usecase we would want to eventually use an ingress without requiring users to port-forward a pod. Is it possible to use a headless service with an ingress? |
I'm not sure - I haven't used ingress much because the setup is quite extensive. Do you want to try it? |
Sorry, I missed this. The headless service that JobSet creates doesn't create a virtual IP, what it does is trigger creating of the dns records of the pods so that they can be reached using their hostnames. If you notice, the API we have in JobSet is enableDNSHostNames and the headless service is just the implementation detail. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
@kannon92 do you want to try anything else? I'm happy to help (with slightly more experience than the first time we chat)! |
I don't think there is anything to be done here on the JobSet side. It would be nice to have an example in the repo though. |
okay - I updated my example to use a newer (and now pinned) version of JobSet, changed the port-forward to ingress proper, and added the appropriate configs. I'm good to close here if @kannon92 is. We don't have a CLA yet so I can't contribute formally from my work but would be happy to if/when we get that! |
This sounds good! Happy to leave it open as a reminder to you @vsoch for the example once you are able to contribute. Or we can close this for now. |
Either works for me - I'm not able to give a good time table for when the lab will have the CLA signed. It's been a hot minute so far. 😆 |
Regardless of the issue I'll add this to my master TODO as a reminder for me. |
TODO sounds good then! Thanks for looking into this. |
Interactive jobs can be a very common usecase in HPC and/or DS/ML.
I wanted to play around with using jobsets and I have the following example which creates a jupyter pod and a service. However, maybe I don't understand headless services, but I am unable to access this service via a port-forward.
My JS job:
I can create an example usecase with a Job and a service manually. Is it in scope to allow for jobset to support something like this?
The text was updated successfully, but these errors were encountered: