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
How to login the Jupyterhub on the remote server? #343
Comments
It looks like there are two issues here
I suggest trying to tackle these issues separately; i.e lets figure out how to connect and JupyterHub and then lets figure out how to authenticate. For connecting to JupyterHub
I don't understand what you mean by "remote server"? Is this your K8s master or your K8s node? If you're using a node port then you need to use the IP address of one of your nodes and this IP address will need to be publicly accessible. Did you try following the user guide and using port-forward to access Jupyter? Why are you using port-forward to forward port 8888 to 8000 and ssh to also forward port 8888? Does this work? I would expect one of the commands to fail if you are already forwarding traffic on port 8888. By default, JupyterHub uses the Dummy Authenticator which accepts any username and password. Why are you changing the authenticator? Are you trying to set a password for JupyterHub? Where and why are you adding "--no-ssl"? |
@jlewi Thank you and apologize, let me separate these.
They are running on k8s-0002.
If I run
It's fine, I had known this very well from the user guide. However, k8s-0002 cannot access it even they are in the same network, let alone public.
How can I connect to the jupyterhub from public? I'll follow your guide, thank you again! |
This appears to be an issue with your networking setup and not anything Kubeflow specific. Have you been able to successfully expose a service the way you'd like e.g publicly? How did you do it? Are you running on a Cloud or in a cluster? Does your K8s distribution provide instructions about how to expose services publicly? Why doesn't your K8s distribution support LoadBalancer? Can you you use Ingress to direct traffic to the Jupyter service?
|
@jlewi I came across the same problem as Smlight. |
@gpfvic Please open up a different issue. Your setup is likely very different since you are using minikube. If you are running minikube on a remote VM. You will need to figure out how to expose services running outside the VM. In the issue please describe what you've done to try to make this work. |
I have used
kubeadm
to setup my kubernetes, and usedcalico
as the network extension.Since the service type
LoadBalancer
not work for my kubernetes, I have manually changed the type oftf-hub-lb
toNodePort
.They are all on my remote server
k8s-0001
, suppose the public IP of it isa.b.c.d
, here comes the problems:a.b.c.d:32133
whether I go through http or https, only get a page saidERR_CONNECTION_TIMED_OUT
, and the dashboard on port32200
works well.--no-ssl
in the commands of the/root/my-kubeflow/vendor/kubeflow/core/jupyterhub.libsonnet
. Second, I addedc.Authenticator.admin_users = {'root'}
at the end of the/root/my-kubeflow/vendor/kubeflow/core/jupyterhub_spawner.py
. Third, I went into the pod bykubectl -n kubeflow exec tf-hub-0 -i -t -- bash -il
and set a password for root. Fourth, I rankubectl port-forward --namespace=kubeflow tf-hub-0 8888:8000
on my remote server. Fifth, I ranssh -C -N -g -L 8888:127.0.0.1:8888 root@a.b.c.d
on local machine. Then I could see the login page if I visithttp://localhost:8888
, but it turned to beERR_EMPTY_RESPONSE
when I hit theSign In
button. What's more, if I visithttps://localhost:8888
, I get a page saidERR_CONNECTION_CLOSED
.I just want to use Jupyterhub from public regradless of any security issue, help plz!!!
The text was updated successfully, but these errors were encountered: