MacOS: Microk8s failing to enable kubeflow
See original GitHub issueHi there,
Right after a fresh install of MicroK8s, enable kubeflow
fails
==> /usr/local/Cellar/microk8s/2.0.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/microk8s--wheel-20201123-5266-1tpceaz/wheel-0.34.2
==> /usr/local/Cellar/microk8s/2.0.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/microk8s-20201123-5266-1quxj6/microk8s-installer-v2.0.1/installer
🍺 /usr/local/Cellar/microk8s/2.0.1: 1,460 files, 13.9MB, built in 31 seconds
ddurand@macbook049 ~ % 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.
ddurand@macbook049 ~ %
IIRC, when I enable kubeflow on Ubuntu I can do it with sudo
otherwise I get a similar failure. It requires to be executed under a standard user. Maybe something similar here ?
Didier
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:18 (2 by maintainers)
Top Results From Across the Web
MacOS: Microk8s failing to enable kubeflow #1763 - GitHub
You are right, this is a bug. The kubeflow addon expects the user to be in the microk8s group or it will fail...
Read more >Unable to enable kubeflow on macOS: "This command can't ...
Hello, I'm attempting to run Kubeflow on MicroK8s on macOS ... Unable to enable kubeflow on macOS: "This command can't be run as...
Read more >Troubleshooting - MicroK8s
Single command install on Linux, Windows and macOS. Made for devops, great for ... I get "Unable to connect to the server: x509"...
Read more >microk8s disable kubeflow file disable.kubeflow.sh errors
Re-install the tip version of MicroK8s with sudo snap install microk8s --classic --channel=edge , and re-enable the Kubeflow add-on. https://www ...
Read more >Install MicroK8s on macOS - Tutorials - Ubuntu Community Hub
Key Value Summary Get a local Kubernetes on MacOS with Microk8s and Multipass. ... Hi, trying to install microk8s and enable Kubeflow on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @didier-durand,
You are right, this is a bug. The kubeflow addon expects the user to be in the
microk8s
group or it will fail withThis command can't be run as root.
. Themicrok8s
OS native client executes allmicrok8s
commands as root with sudo.Here is a workaround, get a shell in the microk8s VM:
Enable kubeflow by adding the user to the microk8s group:
Restart the VM. Get a new shell and enable kubeflow:
still not work