kubernetes jupyterhub HUB_CONNECT_IP

155 views
Skip to first unread message

Paul Mazzuca

unread,
Jun 15, 2017, 3:03:18 PM6/15/17
to Project Jupyter
I am trying to get JupyterHub to work in Kubernetes by starting with MiniKube.  I have authentication working but am unable to spawn using the kubespawner.  I believe my issue is the HUB_CONNECT_IP env variable that I am using.

What exactly should this value be?  I am using a nodeport service with the following ip/port

jupyter-hub-service   10.0.0.161   <nodes>       8000:31176/TCP


Minikube has the dns add on, but am I still supposed to set HUB_CONNECT_IP to an IP?  Given that my nodeport service is as above, anyone have any guidance on what HUB_CONNECT_IP should be, or is there some other action that should be taken?

Yuvi Panda

unread,
Jun 15, 2017, 3:13:19 PM6/15/17
to Project Jupyter
Take a look at https://github.com/jupyterhub/kubespawner/blob/master/SETUP.md which has a nice method for doing dev work on minikube.

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/181129ef-9bfc-4111-a832-362d42c6199e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Paul Mazzuca

unread,
Jun 15, 2017, 4:02:55 PM6/15/17
to jup...@googlegroups.com
Great thanks!  How about in the case that I were running this in production, and not on minikube? What should that HUB_CONNECT_IP be, given the same nodeport? 

--
You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/cUkbPtdVgX4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+unsubscribe@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

Yuvi Panda

unread,
Jun 15, 2017, 7:59:41 PM6/15/17
to Project Jupyter
If you're running this in production, I'd recommend using
http://z2jh.jupyter.org/ which documents how to use our helm chart to
run on any k8s cluster.

If you wanna see how it does it, look at
https://github.com/jupyterhub/helm-chart/blob/master/images/hub/jupyterhub_config.py#L138.
We don't use node port at all - the hub runs inside the k8s cluster as
well and spawns the pods in there, and just uses the service IPs as
HUB_IP_CONNECT...

On Thu, Jun 15, 2017 at 1:02 PM, Paul Mazzuca <paul.j....@gmail.com> wrote:
> Great thanks! How about in the case that I were running this in production,
> and not on minikube? What should that HUB_CONNECT_IP be, given the same
> nodeport?
>
> On Thu, Jun 15, 2017 at 12:13 PM, Yuvi Panda <yuvi...@gmail.com> wrote:
>>
>> Take a look at
>> https://github.com/jupyterhub/kubespawner/blob/master/SETUP.md which has a
>> nice method for doing dev work on minikube.
>>
>> On Jun 15, 2017 12:03 PM, "Paul Mazzuca" <paul.j....@gmail.com> wrote:
>>>
>>> I am trying to get JupyterHub to work in Kubernetes by starting with
>>> MiniKube. I have authentication working but am unable to spawn using the
>>> kubespawner. I believe my issue is the HUB_CONNECT_IP env variable that I
>>> am using.
>>>
>>> What exactly should this value be? I am using a nodeport service with
>>> the following ip/port
>>>
>>> jupyter-hub-service 10.0.0.161 <nodes> 8000:31176/TCP
>>>
>>>
>>> Minikube has the dns add on, but am I still supposed to set
>>> HUB_CONNECT_IP to an IP? Given that my nodeport service is as above, anyone
>>> have any guidance on what HUB_CONNECT_IP should be, or is there some other
>>> action that should be taken?
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Project Jupyter" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to jupyter+u...@googlegroups.com.
>>> To post to this group, send email to jup...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jupyter/181129ef-9bfc-4111-a832-362d42c6199e%40googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Project Jupyter" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/jupyter/cUkbPtdVgX4/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> jupyter+u...@googlegroups.com.
>> To post to this group, send email to jup...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jupyter/CAFw%3DySifJGCMEdsAnXjJ-wKLN6G%2BTV8UzvRdxSZyZ8u5Yg41wg%40mail.gmail.com.
>>
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jupyter+u...@googlegroups.com.
> To post to this group, send email to jup...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jupyter/CAJpXATQHLb8EX6YYTbYfFRvW-UbTYvNV7AZQ_ofnmeNJ6Dy0QQ%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
Yuvi Panda T
http://yuvi.in/blog
Reply all
Reply to author
Forward
0 new messages