kubeflow: Cannot access the kubeflow dashboard
/kind bug
What steps did you take and what happened: Based on the ubuntu/microk8s#1698 suggestion, I installed kubeflow using microk8s.
sudo snap install microk8s --classic --channel=latest/edge
microk8s enable dns storage gpu istio
microk8s enable kubeflow
After install, I clicked the http://localhost
And I got error below
What did you expect to happen: Enter the kubeflow dashboard.
Anything else you would like to add: inspection-report-20201123_124046.tar.gz When I Use the following command to set up port forwarding to the Istio gateway,
export NAMESPACE=istio-system
microk8s kubectl port-forward -n ${NAMESPACE} svc/istio-ingressgateway 8080:80
I have below error message:
upstream connect error or disconnect/reset before headers. reset reason: connection failure
When I enter the link http://10.152.183.51:8082/, I can access to kubeflow dashboard.
However, I cannot access other section, like pipelines, Notebook Servers, etc.
Environment:
- Kubeflow version: (version number can be found at the bottom left corner of the Kubeflow dashboard):
- kfctl version: (use
kfctl version
): - Kubernetes platform: (e.g.
minikube
) microk8s - Kubernetes version: (use
kubectl version
): v1.19.4-34+68a982ef7f1a98 - OS (e.g. from
/etc/os-release
): ubuntu 20.04 LTS
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 36 (1 by maintainers)
@bsamadi New version also have the same problem. kubeflow is not enable when I type microk8s enable.
i wrote a gist for install KF manually in microk8s, working perfectly https://gist.github.com/etheleon/80414516c7fbc7147a5718b9897b1518
@bsamadi Can you type the below command?
And what is the output? If the output is empty, then you need to set the username and password as below
After that, you need to reopen the brower and go to “http://10.64.140.44.xip.io” If you cannot login, then try to open the “http://10.64.140.44.xip.io” as private window.
It seems that I had a similar problem. Does this solution help? I had to configure the kubeflow hostname so all pods are playing nicely together: https://github.com/ubuntu/microk8s/issues/1366#issuecomment-654411307
referring to:
KUBEFLOW_HOSTNAME=your-dns-name-here microk8s.enable kubeflow
For running pipelines on microk8s you have to patch ‘workflow-controller’ to use the pns executor or use the agnostic installation. Not sure if this is already included when using
microk8s enable kubeflow
: https://github.com/kubeflow/pipelines/issues/4302#issuecomment-672819792Hi @floleuerer and @kosehy, Could you try setting the
KUBECONFIG
env?@etheleon and @kosehy Thanks for writing a procedure for installing kubeflow on microk8s.
The installation works and I can access the dashboard, pipeline, notebook. But when I change kubelet args with what is above. Kubeflow no longer starts when I restart it. I tried with microk8s version 1.18/latest, 1.19/latest, 1.20/latest.
btw, for pipelines to work you’ll need to change your kubelet args too
/var/snap/microk8s/current/args/kubelet
If anyone is struggled with uninstall microk8s and kubeflow and install fresh microk8s, I found a good tutorial from @tomalbrecht’s comment https://github.com/kubeflow/manifests/issues/959#issue-572061859
Step to install fresh microk8s
@etheleon I figured the reason why I cannot log in as admin.
I have to use the kfctl_istio_dex.v1.2.0.yaml instead of kfctl_k8s_istio.v1.2.0.yaml After changing the kfctl_k8s_istio.v1.2.0.yaml to dex version, I can log in as admin
I am sorry to make you confuse.
Anyway, thank you for your awesome feedback @etheleon!!
@etheleon I got the same error as @kosehy - microk8s api running on port 16443 and kfctl is trying to reach port 8080. how did you manage to access the api?
I am trying to setup Kubeflow on a bare metal workstation and managed to access the dashboard and pipelines with Microk8s and MetalLB. Unfortunately I couldn’t access the notebooks too.
@etheleon Thank you for porviding how to install KF manually in microk8s!
however, when I run the commend below:
I have face error below
Have you face this error before?
Here are my kubectl informations:
@kosehy, I still get the “Invalid Email Address and password.” error message. I am not sure why it acts differently.