Giter VIP home page Giter VIP logo

microk8s-on-mac-notes's Introduction

MicroK8s on MacOS (Notes)

I want to try Kubernetis for a solution that is distributed across multiple data centers for continuous availability. MicroK8s from Canonical has some features that I think make it worth a look for this project. My first step is to get an instance running on my Mac so I can do some initial experimentation. If that first step works, I'll try a Raspberry Pi based cluster and experiment with network, power and disconnected drive failures.

Basic install notes for my M1 based Mac are here.

I started with homebrew and ended up with an error:

launch failed: instance "microk8s-vm" already exists

It's possible I tried MicroK8s in the past, maybe even before moving to an M1 machines, so it seems I need to clean things up and maybe get a fresh start. These are my notes and references just in case I end up in the same place again.

> multipass info --all
Name:           primary
State:          Running
IPv4:           192.168.64.2
Release:        Ubuntu 22.04.2 LTS
Image hash:     f7555cd22ead (Ubuntu 22.04 LTS)
CPU(s):         1
Load:           0.00 0.00 0.00
Disk usage:     1.6GiB out of 4.8GiB
Memory usage:   137.3MiB out of 962.4MiB
Mounts:         --

Name:           exalted-jaybird
State:          Running
IPv4:           192.168.64.6
Release:        Ubuntu 22.04.2 LTS
Image hash:     f7555cd22ead (Ubuntu 22.04 LTS)
CPU(s):         1
Load:           0.00 0.00 0.00
Disk usage:     1.6GiB out of 4.8GiB
Memory usage:   157.1MiB out of 962.4MiB
Mounts:         --

Name:           microk8s-vm
State:          Unknown
IPv4:           --
Release:        --
Image hash:     f7555cd22ead (Ubuntu 22.04 LTS)
CPU(s):         --
Load:           --
Disk usage:     --
Memory usage:   --
Mounts:         --

Suggests there is indeed an instance of microk8s already running.

> microk8s enable dashboard
MicroK8s is not running. Please run `microk8s start`.
> microk8s start
exec failed: Cannot retrieve credentials in unknown state
An error occurred when trying to execute 'sudo microk8s.start' with 'multipass': returned exit code 2.

Did some searching and tried

> multipass delete microk8s-vm
> multipass purge
> multipass list
Name                    State             IPv4             Image
primary                 Running           192.168.64.2     Ubuntu 22.04 LTS
exalted-jaybird         Running           192.168.64.6     Ubuntu 22.04 LTS

So clear everything and start again...

multipass delete exalted-jaybird
multipass purge

Make sure the packaged version of multipass isn't installed

sudo sh "/Library/Application Support/com.canonical.multipass/uninstall.sh"

Remove multipass and microk8s from homebrew

brew uninstall --zap multipass
brew uninstall --zap ubuntu/microk8s/microk8s

Restart for good measure and then start again

> brew install ubuntu/microk8s/microk8s
> microk8s install
MicroK8s is up and running. See the available commands with `microk8s --help`.
> microk8s dashboard-proxy
Checking if Dashboard is running.
sudo: microk8s.enable: command not found
An error occurred when trying to execute 'sudo microk8s.enable dashboard' with 'multipass': returned exit code 1.

Closer, microk8s is running, but I still cannot execute any commands.

microk8s-on-mac-notes's People

Contributors

davenusbaum avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.