microk8s: Unable to "microk8s install" on macos

Following https://ubuntu.com/tutorials/install-microk8s-on-mac-os#3-install-microk8s for installation.

I currently cannot get past the microk8s install stage.

$ brew install ubuntu/microk8s/microk8s
...
installer: Package name is multipass
installer: Installing at base path /
installer: The install was successful.
🍺  multipass was successfully installed!
Waiting for multipass...
Launched: microk8s-vm                                                           
ping: snapcraft.io: Temporary failure in name resolution                        
An error occurred when trying to execute 'sudo ping -c 1 snapcraft.io' with 'multipass': returned exit code 2.


$ microk8s uninstall
Thank you for using MicroK8s!


$ microk8s install
Launched: microk8s-vm                                                           
ping: snapcraft.io: Temporary failure in name resolution                        
An error occurred when trying to execute 'sudo ping -c 1 snapcraft.io' with 'multipass': returned exit code 2.

Please run microk8s inspect and attach the generated tarball to this issue.

I can’t run inspect, or any other sub-command either.

$ microk8s inspect
sudo: microk8s.inspect: command not found
An error occurred when trying to execute 'sudo microk8s.inspect' with 'multipass': returned exit code 1.

Hardware: MacBook Pro (Retina, 15-inch, Mid 2015)

OS: macOS Mojave v10.14.5

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 7
  • Comments: 16 (3 by maintainers)

Most upvoted comments

any solution?

Cisco VPN is usually the culprit in this situation

I’m also having issues running microk8s install but the error that I get is different:

> microk8s install
launch failed: The following errors occurred:
Instance stopped while starting
launch failed: instance "microk8s-vm" already exists


launch failed: instance "microk8s-vm" already exists


launch failed: instance "microk8s-vm" already exists


launch failed: instance "microk8s-vm" already exists


launch failed: instance "microk8s-vm" already exists


launch failed: instance "microk8s-vm" already exists


launch failed: instance "microk8s-vm" already exists


launch failed: instance "microk8s-vm" already exists


launch failed: instance "microk8s-vm" already exists


launch failed: instance "microk8s-vm" already exists


An error occurred with the instance when trying to launch with 'multipass': returned exit code 2.
Ensure that 'multipass' is setup correctly and try again.

Same problem, rca was the existing vpn that did dns forwarding and locked me in the vpn dns. upon disabling it, microk8s install all downloading fine here.

@ktsakalozos, it’s still happening (just tried again). I’ve tried with/without VPN and the issue persists.

I looked at the multipass troubleshooting guide you linked to, and don’t see anything obvious pop out from there as an issue.

One thing I will note though–the guide mentions “Multipass uses “hyperkit” to run instances”, and I’m wondering if this is the problem.

I today installed minikube, and when I created a VM using minikube start --driver=hyperkit, I had a similar, connectivity issue. In the k8s cluster I created there, none of the images could be downloaded, and upon running minikube ssh, I couldn’t even, for e.g., curl www.google.com. Seems to be a known issue. None of the workarounds described in that issue worked for me. I had to switch to virtualbox as the driver, and then everything worked!

So, perhaps this is some hyperkit related issue that I’m running into, with both microk8s and minikube 🤷‍♂️?