Kubeflow on MicroK8s
This guide describes how to deploy and run Kubeflow using MicroK8s - a small enterprise Kubernetes cluster — locally on built-in hypervisors.
Alternatively, you can install MicroK8s on a Linux appliance with Multipass, which gives you a disposable Ubuntu command line on Windows, macOS or Linux. Refer to the official documentation for more details.
Installing and enabling Kubeflow using MicroK8s
To get Kubeflow running using MicroK8s, you’ll need to install MicroK8s, enable basic services, and then enable Kubeflow.
Note: You need MicroK8s version 1.18 and above to enable and run Kubeflow.
Install MicroK8s with Snap by running the following command:
sudo snap install microk8s --classic
Verify that MicroK8s is running:
Having installed MicroK8s, you can now enable common services on your MicroK8s deployment. To do that, run the following command:
microk8s.enable dns dashboard storage
Optional: To enable NVIDIA GPU hardware support, also run
Deploy Kubeflow by running this command:
The deployment process may take a few minutes. Once it is complete, the script will print out the port number and credentials to access the Kubeflow dashboard.
Accessing the Kubeflow dashboard
On your Linux machine
If you installed MicroK8s directly on your Linux machine, you can view the Kubeflow dashboard as follows:
- Open a web browser window.
- Access the link provided after you have enabled Kubeflow (for example,
On Windows, macOS, Multipass or a virtual machine
When running MicroK8s on Windows, macOS, Multipass or a virtual machine, you need to create a SOCKS proxy to access the Kubeflow dashboard:
Logout from the current session in your terminal using the
Re-establish connection to the machine using
SSH, enabling SOCKS proxy with the
In the VM case, run the following command, where
<machine_public_ip>is your machine’s public IP:
ssh -D9999 ubuntu@<machine_public_ip>
On Windows, macOS or Multipass, you can check for the IP first with:
and then, run this command, replacing
<multipass_public_ip>with that IP:
ssh -D9999 multipass@<multipass_public_ip>
In your host operating system, go to Settings > Network > Network Proxy, and enable SOCKS proxy pointing to:
Finally, access the Kubeflow dashboard by:
- Opening a new web browser window.
- Accessing the link provided after you have enabled Kubeflow (for example,
- MicroK8s: troubleshooting
- Multipass: documentation
- Kubeflow: documentation
- Kubeflow components: documentation
- Jupyter notebooks in Kubeflow: documentation
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.