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.

Microk8s 1.19 not working on Ubuntu 20.04.1

See original GitHub issue

My environment:

  • Ubuntu 20.04.1 x64

  • Microk8s 1.19

The steps:

sudo snap install microk8s --classic

sudo usermod -a -G microk8s $USER

sudo chown -f -R $USER ~/.kube

su - $USER

microk8s config view > $HOME/.kube/config

And check ready

microk8s kubectl get pods -A -w

I waiting forever.

NAMESPACE     NAME                                      READY   STATUS              RESTARTS   AGE
kube-system   calico-kube-controllers-847c8c99d-qghww   0/1     ContainerCreating   0          3m56s
kube-system   calico-node-7xnt4                                          0/1     CrashLoopBackOff    4          3m56s
kube-system   calico-node-7xnt4                                          0/1     Error               5          4m53s
kube-system   calico-node-7xnt4                                          0/1     CrashLoopBackOff    5          4m59s
kube-system   calico-node-7xnt4                                          0/1     Error               6          7m46s
kube-system   calico-node-7xnt4                                          0/1     CrashLoopBackOff    6          7m49s
kube-system   calico-node-7xnt4                                          0/1     Error               7          12m
kube-system   calico-node-7xnt4                                          0/1     CrashLoopBackOff    7          13m

The attachment file

inspection-report-20200911_200456.tar.gz

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

17reactions
ktsakalozoscommented, Sep 12, 2020

This might be related to [1]. Calico will not consider your wlo1 interface (the only interface with IPv4) because it contains “lo” in its name. Here is what you could try. Edit /var/snap/microk8s/current/args/cni-network/cni.yaml and instead of:

            - name: IP_AUTODETECTION_METHOD
              value: "first-found"

enter:

            - name: IP_AUTODETECTION_METHOD
              value: "interface=wlo.*"

Then reapply the CNI manifest with microk8s kubectl apply -f /var/snap/microk8s/current/args/cni-network/cni.yaml

[1] https://github.com/projectcalico/calico/issues/3094 [2] https://docs.projectcalico.org/reference/node/configuration#ip-autodetection-methods

3reactions
ktsakalozoscommented, Sep 14, 2020

Is this a problem that belongs to Calico?

This is an issue we would like to be solved on Calico side however since we apply the calico CNI by default it affects MicroK8s too.

We could submit a patch to calico and we could also try to detect such cases in MicroK8s and try to hint the interface to use.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microk8s 1.19 not working on Ubuntu 20.04.1 #1554 - GitHub
My environment: Ubuntu 20.04.1 x64 Microk8s 1.19 The steps: sudo snap install microk8s --classic sudo usermod -a -G microk8s $USER sudo ...
Read more >
Upgrading MicroK8s
Downgrading (e.g. 1.20 to 1.19) is not tested or supported. ... If for any reason an upgrade does not result in a working...
Read more >
Install a local Kubernetes with MicroK8s - Ubuntu
MicroK8s is a CNCF certified upstream Kubernetes deployment that runs entirely ... Get your Kubernetes cluster up and running; Enable core Kubernetes addons ......
Read more >
Testing out Kubernetes V1.19 with MicroK8s on Ubuntu 20.04 ...
Testing out Kubernetes V1.19 with MicroK8s on Ubuntu 20.04.1 LTS · Installing Ubuntu Server on MacOS via VirtualBox · SSH into Ubuntu Server....
Read more >
Creating a MicroK8s cluster - Codacy Quality docs
You will need a machine running Ubuntu Server 20.04 LTS that: ... Install MicroK8s from the 1.19/stable channel: ... Check that MicroK8s is...
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