Welcome to the Linux Foundation Forum!

Error configuring microk8s

Posts: 7
edited March 2023 in LFS244 Class Forum

Hello,

I am on mac ventura 13.2.1 and I installed and now configuring microk8s, when running:

microk8s install

I got the error message:

An error occurred when trying to execute 'sudo ping -c 1 snapcraft.io' with 'multipass': returned exit code 1.

Any help on how to fix will be appreciated.

Thanks

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Answers

  • Posts: 2,293

    Hi @edreir

    Can you please advise what course is this related to?

    Regards,

    Flavia

  • Posts: 7

    Hello, it is related to:

    Managing Kubernetes Applications with Helm (LFS244)

    Regards

  • Posts: 2,293

    This post was moved under the LFS244 forum to ensure it gets appropriate attention.

  • Posts: 2,449

    Hi @edreir,

    Does your host meet the physical requirements noted on the official installation page?

    https://microk8s.io/docs/install-macos

    Regards,
    -Chris

  • Posts: 7

    Note: Installing MicroK8s with Multipass requires macOS Yosemite, version 10.10.3 or later installed on hardware from 2010 onwards. It will also require at least 4GB of available RAM and 40GB of storage.

    Yes it does

  • Posts: 2,449

    Hi @edreir,

    Can you run the same ping command to snapcraft.io from your host, outside of the microk8s install? Is it successful?

    Regards,
    -Chris

  • Posts: 7

    interesting I pinged and it reached the server then I was able to install, not sure if the ping execution was the fix, but unfortunately it returned a different error:

    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.

    should I open a new thread for this error?

    Thank you

  • Posts: 2,449

    Hi @edreir,

    Have you tried maybe re-installing multipass? If something got misconfigured the first time around, it may get fixed.

    Regards,
    -Chris

  • Posts: 1
    edited March 2024

    Ich have the same problem here (Mac M1 Pro Sonoma). Deinstall, Reinstall, brew install...nothing helps. It seems, that some commands are not installed in sudo env!?:

    base@MacBook-Pro-von-Jan ~$ microk8s status --wait-ready
    sudo: microk8s.status: command not found
    An error occurred when trying to execute 'sudo microk8s.status --wait-ready' with 'multipass': returned exit code 1.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training