Unable to enable kubeflow on macOS: "This command can't be run as root."


I’m attempting to run Kubeflow on MicroK8s on macOS Catalina (10.15.7). I installed microk8s according to the instructions at https://microk8s.io, however when I try to enable the kubeflow add-on I run into the following problem:

[msa@dandy ~]$ microk8s enable kubeflow
This command can't be run as root.
Try `microk8s enable kubeflow` instead.
Failed to enable kubeflow
An error occurred when trying to execute 'sudo microk8s.enable kubeflow' with 'multipass': returned exit code 1.
[msa@dandy ~]$ 


Hi @msa you’re right this is a bug.

Someone has reported this. Care to try the workaround https://github.com/ubuntu/microk8s/issues/1763#issuecomment-731999949

Hi @balchua1. Thanks for the pointer. That was helpful. Unfortunately I’m running into another roadblock that’s also been reported as a bug. I’m going to set aside microk8s for the time being and try a different approach.

Cheers and thanks again.