Installing Microk8s and Kubeflow on local machine with GPU

Manu Suryavansh
2 min readApr 2, 2019

Install MicroK8s

sudo snap install microk8s — classic

To enable GPU — microk8s.enable gpu

Add Alias for kubectl — sudo snap install kubectl — classic

Export Kube Config — microk8s.kubectl config view — raw > $HOME/.kube/config

Enable dashboard — microk8s.enable dns dashboard

Display all the namespaces— microk8s.kubectl get all — all-namespaces

In the output of above command there will be IP address of the dashboard. Access the IP in browser (choose SKIP when asked for login), should look like below

Install Kubeflow

git clone https://github.com/canonical-labs/kubeflow-tools

sudo kubeflow-tools/install-kubeflow.sh

After this it will take some time to start all the containers etc. I got this error — ERROR handle object: patching object from cluster: merging object with existing state: unable to recognize “/tmp/ksonnet-mergepatch505028826”: no matches for kind “Application” in version “app.k8s.io/v1beta1”

However by forwarding the Ambassdor to a different port I was able to access the Kubeflow dashboard (see below)

kubectl port-forward svc/ambassador -n ${NAMESPACE} 8081:80

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Manu Suryavansh
Manu Suryavansh

No responses yet