Comments (5)
Hi @edsiper ,
In microk8s your machine is also the node kubernetes is using. Disk pressure means you do not have enough resources for kubernetes to schedule pods. You can either free disk space by deleting files, or set the pod eviction limits as described in [1].
To set the pod eviction limits you have to set the --eviction-hard
and --eviction-minimum-reclaim
parameters in kubelet. The arguments used to start the daemons microk8s ships are under /var/snap/microk8s/current/args/
. I suggest you append the following line in /var/snap/microk8s/current/args/kubelet
--eviction-hard="memory.available<500Mi,nodefs.available<1Gi,imagefs.available<1Gi"
And then you will need to restart kubelet: sudo systemctl restart snap.microk8s.daemon-kubelet
You bring forward a valid point, the default eviction limits make sense for a server setup but may be to conservative for a standalone dev environment. We should set sensible defaults here: https://github.com/juju-solutions/microk8s/blob/master/microk8s-resources/default-args/kubelet
Thanks
[1] https://kubernetes.io/docs/tasks/administer-cluster/out-of-resource/
from microk8s.
that fixed the issue!, thanks for your help.
I'd suggest those values comes by default...
from microk8s.
I agree, I'll open a pull request to start that process
from microk8s.
Works here @ktsakalozos. I was going through the same issue.
from microk8s.
Can't those arguments be passed by kubectl or API ?
from microk8s.
Related Issues (20)
- microk8s is not running. microk8s inspect shows no errors HOT 2
- Unable to use multipass bridge network as default network interface device HOT 3
- License Mismatch HOT 1
- refresh-certs fails on error running snapctl microk8s has service-control change in progress
- Unable to pull metallb image HOT 7
- How to continue to use the IP 192.168.64.2 after reinstalling microk8s. HOT 2
- Requesting a startup parameter to override the docker.io url in image tags with in microk8s HOT 4
- Using k8s alpha features HOT 2
- When will microk8s 1.29 be added to the latest/stable snap? HOT 2
- metrics-server image addons can not download. HOT 4
- Microk8s v1.29 snap installation failed on plain Debian 12.4 HOT 15
- rook-ceph: csi-rbdplugin pod stuck in CrashLoopBackOff HOT 2
- Adding node to tailscale network breaks server certs
- kubectl/api hangs HOT 1
- Image pull from ECR private registry is not working HOT 3
- microk8s in error state due to hook failed: "peer-relation-joined" HOT 2
- Unable to use ingress using metallb - it gets 127.0.0.1 HOT 5
- dqlite errors "failed to list /registry/events/<name>", cluster responding slow HOT 5
- Unable to launch dashboard-proxy due to tls certificate error HOT 1
- Insufficient permissions to access MicroK8s. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microk8s.