None of the commands provided for setting micro8s up or for reporting issues work on Catalina:
$ microk8s install
Support for 'multipass' needs to be set up. Would you like to do that it now? [y/N]: y
==> Downloading https://github.com/CanonicalLtd/multipass/releases/download/v1.3.0/multipass-1.3.0+mac-Darwin.pkg
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.com/114128199/2ced4a00-a9d8-11ea-82d1-074169520188?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJ
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'multipass'.
==> Installing Cask multipass
==> Running installer for multipass; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
Password:
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 install
MicroK8s is up and running. See the available commands with `microk8s --help`.
$ microk8s stop
sudo: microk8s.stop: command not found
An error occurred when trying to execute 'sudo microk8s.stop' with 'multipass': returned exit code 1.
$ microk8s inspect
sudo: microk8s.inspect: command not found
An error occurred when trying to execute 'sudo microk8s.inspect' with 'multipass': returned exit code 1.
Hey @jcayzac, sorry you're experiencing this issue. It's likely one of these https://multipass.run/docs/troubleshooting-networking-on-macos
Can you try to do:
microk8s uninstall
microk8s install
to see if you still get the ping error?
Thanks,
Joe
Microk8s multipass works on Catalina. However, instead of microk8s.enable it needs to be microk8s enable.
A few features that doesn't work are enabling Kubeflow and there seems to be issues installing helm charts.
@joedborg the uninstall command thanked me for using microk8s and the subsequent install command failed again with the same error.
Microk8s multipass works on Catalina. However, instead of
microk8s.enableit needs to bemicrok8s enable.
A few features that doesn't work are enabling Kubeflow and there seems to be issues installing helm charts.
Hey @vinhdiesal, can you let me know where you're seeing microk8s.enable so I can fix it, please?
@joedborg the uninstall command thanked me for using microk8s and the subsequent install command failed again with the same error.
@jcayzac Thanks for trying. The quick option would be to use Virtualbox. If you already have it installed, you can run sudo multipass set local.driver=virtualbox. Otherwise, did you manage to go over the debugging steps in the docs I linked above?
Hi @joedborg
On the MAC OSx version of the microk8s, it doesn't take any commands with a period, for example microk8s.enable and microk8s.kubectl will result in an error no matter what comes after it, instead you have to specify microk8s enable and microk8s kubectl. I was able to enable dns, dashboard, ingress, istio, fluentd, storage, metallb, etc.
What I had a hard time with is the microk8s enable kubeflow because it always complained about the juju controller and installing helm charts results in network connectivity problems. The microk8s works really well as a host.
The network bridge works well as well as long as you follow enable virtual box as the driver and enter in a few commands from the multipass.run website docs section.
In the mean time, I find the best solution for using microk8s on a MAC is using Parallels with Ubuntu 20.04. My mac is performing really well as the Kubernetes host with multiple machines connecting in the cluster. Everything works including Kubeflow.
Hi @vinhdiesal
We're aware that, if you're used to using the period separator for commands, using the space separator can be confusing. However, we do believe all of our documentation is up-to-date; showing the space separator. If you spot any that isn't, please let us know.
I had the same problem (ping: snapcraft.io: Temporary failure in name resolution). It was caused by dnsmasq already running. After uninstalling it via brew and stopping the process (sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist), microk8s install worked without errors.
@joedborg
@jcayzac Thanks for trying. The quick option would be to use Virtualbox. If you already have it installed, you can run sudo multipass set local.driver=virtualbox. Otherwise, did you manage to go over the debugging steps in the docs I linked above?
I had the same problem with multipass. Virtualbox did the trick for me for a quick fix. Installed from here. Then ran sudo multipass set local.driver=virtualbox.
Most helpful comment
I had the same problem (
ping: snapcraft.io: Temporary failure in name resolution). It was caused by dnsmasq already running. After uninstalling it via brew and stopping the process (sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist),microk8s installworked without errors.