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.

18.04.2 microk8s issue starting

See original GitHub issue

Brand new install of 18.04.2 along with microk8s which installs fine. Trying to run rancher/vm but either everything sits in Evicted or Pending. Network host is attached to is 10.1.1.0/24 which I changed in the config to be 10.10.1.1/24 as I thought maybe that was the issue. I have tried various resolutions including re-install, changing br0 etc etc. I am sure I am doing something stupid. Thanks for any insight.

inspection-report-20190509_162949.tar.gz

Please run microk8s.inspect and attach the generated tarball to this issue.

We appreciate your feedback. Thank you for using microk8s.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ktsakalozoscommented, May 10, 2019

@crsavage1 this is a great question that should reach our official docs eventually.

In MicroK8s container data are kept under /var/snap/microk8s/common/var/lib/containerd and /var/snap/microk8s/common/run/. If you do a df -h you should see that the filesystem holding those paths (probably the root filesystem) is running low on disk space. As I understand you have some other volumes with free disk space you want to use. To do so you have to configure MicroK8s accordingly. Edit /var/snap/microk8s/current/args/containerd and point the --root and --state to the volume you want to use. Here is an example where we use the /mnt

--config ${SNAP_DATA}/args/containerd.toml
--root /mnt/var/lib/containerd
--state /mnt/run/containerd
--address ${SNAP_COMMON}/run/containerd.sock

You must restart MicroK8s for this configuration to take effect: microk8s.stop, microk8s.start.

2reactions
ktsakalozoscommented, May 9, 2019

Hi @crsavage1

I see your node is under disk pressure (running low on disk), see microk8s.kubectl describe no.

The limits we set are --eviction-hard="memory.available<100Mi,nodefs.available<1Gi,imagefs.available<1Gi" defined in /var/snap/microk8s/current/args/kubelet. You can update the limits and do a microk8s.stop, microk8s.start.

Read more comments on GitHub >

github_iconTop Results From Across the Web

18.04.2 microk8s issue starting #463 - GitHub
I see your node is under disk pressure (running low on disk), see microk8s.kubectl describe no . The limits we set are --eviction-hard="memory....
Read more >
Troubleshooting - MicroK8s
You may experience the API server being slow, crashing or forming an unstable multi node cluster. Such problems are often traced to low...
Read more >
Install a local Kubernetes with MicroK8s - Ubuntu
Being a snap it runs all Kubernetes services natively (i.e. no virtual machines) while packing the entire set of libraries and binaries needed....
Read more >
MicroK8s on Ubuntu : A Getting Started Guide
Installing Microk8s · 1. Open a terminal session on your Ubuntu machine, whether locally or via SSH. Related:How to Set up the SSH...
Read more >
Microk8s pods are stuck on pending on Ubuntu - Stack Overflow
There's a section in the docs about this. If a Pod is stuck in Pending it means that it can not be scheduled...
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