Giter Club home page Giter Club logo

Comments (6)

gsiawGH avatar gsiawGH commented on June 3, 2024

so i deleted everything, and restarted the box

this time, when i run 'microk8s install', it actually asks for password (which it didnt before), but i get a different failure:

🍺 multipass was successfully installed!
Waiting for multipass...
Warning: the "--mem" long option is deprecated in favour of "--memory". Please update any scripts, etc.
Launched: microk8s-vm
An error occurred when trying to execute 'sudo ping -c 1 snapcraft.io' with 'multipass': returned exit code 1.

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.

from microk8s.

gsiawGH avatar gsiawGH commented on June 3, 2024

if i do these step , it installs finally.

multipass shell microk8s-vm
sudo snap install microk8s --classic --channel=1.30/stable

from microk8s.

gsiawGH avatar gsiawGH commented on June 3, 2024

but then the next step doesnt work:

microk8s kubectl get nodes
E0518 20:21:20.727345 5311 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp 127.0.0.1:8080: connect: connection refused
E0518 20:21:20.731851 5311 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp 127.0.0.1:8080: connect: connection refused
E0518 20:21:20.735448 5311 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp 127.0.0.1:8080: connect: connection refused
E0518 20:21:20.739024 5311 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp 127.0.0.1:8080: connect: connection refused
E0518 20:21:20.742342 5311 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp 127.0.0.1:8080: connect: connection refused
The connection to the server localhost:8080 was refused - did you specify the right host or port?

from microk8s.

gsiawGH avatar gsiawGH commented on June 3, 2024

ok, once i followed this, i was able to continue

from microk8s.

gsiawGH avatar gsiawGH commented on June 3, 2024

summary to install on M1 macmini, sonoma 14.5:

brew install ubuntu/microk8s/microk8s
microk8s install --cpu 2 --memory 4 --disk 15

  • installs multipass, needs password

MANUAL STEPS to INSTALL version 1.30 (using multipass container)

multipass shell microk8s-vm
sudo snap install microk8s --classic --channel=1.30/stable

MANUAL STEPS to create config file on M1 host: ~/.microk8s/config

Manually create the directory ( mkdir ~/.microk8s )
Grab the config from the VM environment directly ( multipass shell microk8s-vm, sudo microk8s config )
create a file ~/.microk8s/config with the contents 

microk8s status --wait-ready
microk8s kubectl get nodes
microk8s kubectl get services
microk8s kubectl create deployment kubernetes-bootcamp --image=gcr.io/google-samples/kubernetes-bootcamp:v1
microk8s kubectl delete deployment kubernetes-bootcamp

from microk8s.

Related Issues (20)

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.