Error out of disk space when install in a LXC container
See original GitHub issueHi,
I have an error when I am trying to install microk8s in a LXC container with nesting and privileged security to true. I follow these steps:
- After access the container, I install it: sudo snap install microk8s --edge --classic
- Enable dns and dashboard addons: microk8s.enable dns dashboard
- List all pods: microk8s.kubectl get pods --all-namespaces
- Access info heapster pod: microk8s.kubectl describe pod heapster-v1.5.2-84f5c8795f-c8hld --namespace kube-system
At that moment I see this info:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 21m (x6 over 21m) default-scheduler 0/1 nodes are available: 1 node(s) were not ready.
Warning FailedScheduling 21m default-scheduler 0/1 nodes are available: 1 node(s) were not ready, 1 node(s) were out of disk space.
I have checked my ZFS storage and I have not a problem with my disk space.
Can anyone reproduce it with LXC container? Any ideas?
Thank you very much
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Error out of disk space when install in a LXC container #65
Hi, I have an error when I am trying to install microk8s in a LXC container with nesting and privileged security to true....
Read more >All containers suddenly out of disk space - LXD
Takes some effort and some space, but can be done. It sounds like it might be worth the effort.
Read more >How to fix the running out of disk space error in Docker?
This will remove all images related reclaimable space which are not associated with any running container..... Run docker system df command to ...
Read more >Top 3 Ways to Fix “No Space Left on Device” Error in Linux
If you are seeing the “No Space Left on Device” error message despite having sufficient free space on your disk, it's not the...
Read more >Cannot remove a CT (2 now actually) with error 'Failed to find ...
I create the container, do some stuff, then shutdown the container, and try to remove through the UI. Fill out the VM ID,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @raguilera82 ,
After some experimentation with LXC and zfs I got microk8s working. Here is what I had to do:
zfsutils-linux
in the container. This package should be part of microk8s so I also opened a new issue.Most of the work is on the lxc profile so there is not really much to do for microk8s. Here is an ascii cast of the above steps: https://asciinema.org/a/198964
Thanks
Hi @kim0 ,
I am not entirely sure what you are asking me. I would say it is a little hard to reach the host but not hard enough.
MicroK8s, can get out of the lxc confinement and can access the host machine and this is the purpose of the profile we apply. MicroK8s is expected to run on the host and you are expected to trust it. What you might not trust is the user workload that runs inside Kubernetes and that is constrained by docker containers. You should be aware that MicroK8s is not supposed to be deployed in production or in untrusted environments. Its purpose is mainly to assist in application development locally. If security is of concern you should look into production grade Kubernetes solutions.
Having said that here are a few ways to harden MicroK8s.
Thanks