question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem to execute microk8s CLI MacOs BigSur 11.4

See original GitHub issue

I have a Mac with BigSur v11.4 installed I followed the instructions to install MicroK8s on top of it. https://microk8s.io/docs/install-alternatives#heading--macos

The installation went successfully without any errors. “microk8s install” installed perfectly too and I run it again I got that output: microk8s install MicroK8s is up and running. See the available commands with microk8s --help

However I can not execute any of others CLI commands"microk8s" commands such as “status”, “stop”, microk8s status sudo: microk8s.status: command not found An error occurred when trying to execute ‘sudo microk8s.status’ with ‘multipass’: returned exit code 1.

microk8s stop sudo: microk8s.stop: command not found An error occurred when trying to execute ‘sudo microk8s.stop’ with ‘multipass’: returned exit code 1.

Any Clue ? Any idea ? Any suggestions that could help me ?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
shitalmcommented, Dec 15, 2022

After Mac upgrade (Mac Monteray, 12.6.1), I got following error: microk8s start

start failed: The following errors occurred:
Instance stopped while starting An error occurred when trying to execute ‘sudo microk8s.start’ with ‘multipass’: returned exit code 2.

Somehow my VM failed to start and was stuck, executed multipass list to find the status of VM: multipass list

Name State IPv4 Image microk8s-vm Starting – Ubuntu 18.04 LTS

I then executed following command to recover:

multipass stop microk8s-vm
multipass delete microk8s-vm
multipass purge

and then finally reinstalled microk8s: microk8s install

This finally fixed the issue.

1reaction
ktsakalozoscommented, Jul 2, 2021

You can get the kubeconfig file by running microk8s config.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem to execute microk8s CLI MacOs BigSur 11.4 #2396
I have a Mac with BigSur v11.4 installed I followed the instructions to install MicroK8s on top of it. ... The installation went...
Read more >
Troubleshooting - MicroK8s
You may experience the API server being slow, crashing or forming an unstable multi node cluster. Such problems are often traced to low...
Read more >
Terminal issue on Big Sur (Mac OS … | Apple Developer Forums
I'm using Mac OS 11.4 (Big Sur) and I have some issues during the use of terminal. When I run a shell script...
Read more >
Install MicroK8s on macOS - Ubuntu
In this tutorial you'll learn how to… · Install Homebrew on macOS · Install Multipass and MicroK8s from Brew · Run MicroK8s add-ons ......
Read more >
Homebrew: Your CLT does not support macOS 11.0
Simplest solution that worked when upgrading to Big Sur. A clean install may not require the solution below. There is inconsistency with the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found