Answer a question

Upgraded to PC to ubuntu 20.04 and having problems re-installing microk8s (1.19 and 1.20 have the same issue on my PC).

starting fresh to demo problem

snap remove microk8s

Following instructions on Install MicroK8s

sudo snap install microk8s --classic --channel=1.19

result:

microk8s (1.19/stable) v1.19.5 from Canonical✓ installed

Step: Join the group

sudo usermod -a -G microk8s $USER
sudo chown -f -R $USER ~/.kube
su - $USER

Step: Check the status

microk8s status --wait-ready

Result: Hangs forever

Figure out what is going on:

microk8s inspect

The tar files contain lots of

Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized

dial tcp 127.0.0.1:16443: connect: connection refused

Any suggestions would be appreciated.

Answers

I had the same issue on a new Ubuntu 20.04.1 Server install and following the same instructions... e.g.

sudo snap install microk8s --classic --channel=1.19

What worked for me was using the 1.18 channel

sudo snap remove microk8s
sudo snap install microk8s --classic --channel=1.18/stable

And then refreshing to 1.19 once microk8s 1.18 became ready...

sudo snap refresh microk8s --classic --channel=1.19/stable

Don't ask me why this worked but it did.

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐