microk8s: Kubeflow dashboard does not show in browser

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 Screenshot from 2020-11-23 13-03-46

And I got error below Screenshot from 2020-11-23 13-11-40

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. Screenshot from 2020-11-23 15-01-32 However, I cannot access other section, like pipelines, Notebook Servers, etc. Screenshot from 2020-11-23 15-04-26 Environment:

  • 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: 37 (3 by maintainers)

Most upvoted comments

@kosehy, @tritran-cotai, @burningion: Sorry about the issues with this. I’ve got #1919 merged, which should fix these issues. Can you try it again after making sure to refresh the snap (sudo snap refresh microk8s --channel latest/edge)? I’ve also added some functional UI tests that will ensure we don’t get regressions on this.

Finally, I found a great installation tutorial about how to install kubeflow 1.12 using microk8s. It also covers both dex and without dex version. how-to-install-kubeflow1.2 https://github.com/kubeflow/kubeflow/issues/5429#issuecomment-748826410

I tested 1.18/stable, 1.19/stable, and 1.20 stable version and can access kubeflow dashboard, pipeline, and notebook servers

installed:          v1.18.13            (1854) 199MB classic with kfctl_istio_dex.v1.2.0.yaml
installed:          v1.19.5             (1856) 216MB classic with kfctl_istio_dex.v1.2.0.yaml
installed:          v1.20.0             (1864) 219MB classic with kfctl_istio_dex.v1.2.0.yaml

installed: v1.20.0 (1876) 219MB classic

followed the instructions above and the kubeflow page appears and i login but the page has errors:

  1. When launching it reports the following JS errors: Uncaught TypeError: Cannot read property ‘pipelines’ of null Uncaught TypeError: Cannot read property ‘runs’ of null this may indicate some underlying services are not running
  2. Navigating to create a new notebook server I find:

Uncaught SyntaxError: Unexpected token ‘<’ three times for runtime, polyfill and main.js[]

Inspection report inspection-report-20201215_072743.tar.gz

@kosehy : Please follow the steps in the video below from 7:55 to 8:55 to setup socks proxy https://www.youtube.com/watch?v=KPEGKKNB63Q&t=557s&ab_channel=celebrateubuntu

After that, you can get IP of the kubeflow dashboard from command below microk8s kubectl -n kubeflow describe service/kubeflow-dashboard

Enter the IP in your browser and you should see the kubeflow dashboard. These steps work only for a VM provisioned on cloud. I am not sure if similar steps work for local machine.