3 ms·
This is great, until I need to run two Jupyter+Pytorch instances (say I want to test two library versions side by side, a very common task). ...on docker, I ca
by TuringNYC 6y ago
This is great, until I need to run two Jupyter+Pytorch instances (say I want to test two library versions side by side, a very common task).
...on docker, I can do this in 20sec:
"docker run .... -p 8888:8888"
"docker run .... -p 8888:8889"
Enter k8s. Jupyter does not appear to allow path prefix-based url schemes, so the above wont work. That means, you can use "/" and the default-host, and you're good for your first instance. But what about the next instance? Now you need two different domains somehow supported. Unclear how this works, because unclear whose "problem" it is. It isnt clearly an NGINX problem, or a Jupyter problem, or a k8s problem, but a problem nonetheless. NGINX docs on multiple distinct host based ingress is thinner than that for base usage cases.
I do appreciate your post, but I think my point is that solving 80% of the cases isn't sufficient to make the case for adhoc k8s-usage-by-default on desktop. I'm sure I can make the above work (e.g. for group or Prod usage), but to make that effort worth it, there has to be a reason to do it. When I have an alternative of running two "docker run" commands for adhoc usage, i'm not sure if it is.
- atombender 6y agoThat's not what ingresses are for. Your "docker run" example is equivalent to just accessing the Kubernetes services directly on their host names or IPs. For example, with Docker for Desktop, all services of type "LoadBalancer" will automatically get exposed on the host, just like with "docker run". Ingresses are for setting up HTTP proxying of multiple services on a single host name.
- TuringNYC 6y agoFirstly, I totally agree. Secondly, but it speaks to my initial objection. Not everything can easily be thrown into an adhoc desktop kubernetes setup and it does not make sense for everything -- especially when you have a simple, almost instantaneous alternative way to do it -- docker cli+daemon