Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Microk8s node not ready - InvalidDiskCapacity

the node of microk8s does not watn to start. Kube.system pods are stick at pending state. kubectl describe nodes says as Warning InvalidDiskCapacity. My Server has more than enough resources.

PODS:

NAMESPACE            NAME                                              READY   STATUS    RESTARTS   AGE
container-registry   registry-7cf58dcdcc-hf8gx                         0/1     Pending   0          5d
kube-system          coredns-588fd544bf-4m6mj                          0/1     Pending   0          5d
kube-system          dashboard-metrics-scraper-db65b9c6f-gj5x4         0/1     Pending   0          5d
kube-system          heapster-v1.5.2-58fdbb6f4d-q6plc                  0/4     Pending   0          5d
kube-system          hostpath-provisioner-75fdc8fccd-6mdvc             0/1     Pending   0          5d
kube-system          kubernetes-dashboard-67765b55f5-8xsh5             0/1     Pending   0          5d
kube-system          monitoring-influxdb-grafana-v4-6dc675bf8c-82fg4   0/2     Pending   0          5d

Describe node:

Normal   Starting                 72s                kubelet, h2860142.stratoserver.net     Starting kubelet.
  Warning  InvalidDiskCapacity      71s                kubelet, h2860142.stratoserver.net     invalid capacity 0 on image filesystem
  Normal   NodeHasSufficientPID     70s                kubelet, h2860142.stratoserver.net     Node h2860142.stratoserver.net status is now: NodeHasSufficientPID
  Normal   NodeHasNoDiskPressure    70s                kubelet, h2860142.stratoserver.net     Node h2860142.stratoserver.net status is now: NodeHasNoDiskPressure
  Normal   NodeHasSufficientMemory  70s                kubelet, h2860142.stratoserver.net     Node h2860142.stratoserver.net status is now: NodeHasSufficientMemory
  Warning  InvalidDiskCapacity      54s                kubelet, h2860142.stratoserver.net     invalid capacity 0 on image filesystem
  Normal   NodeHasSufficientMemory  54s                kubelet, h2860142.stratoserver.net     Node h2860142.stratoserver.net status is now: NodeHasSufficientMemory
  Normal   NodeHasNoDiskPressure    54s                kubelet, h2860142.stratoserver.net     Node h2860142.stratoserver.net status is now: NodeHasNoDiskPressure
  Normal   NodeHasSufficientPID     54s                kubelet, h2860142.stratoserver.net     Node h2860142.stratoserver.net status is now: NodeHasSufficientPID

How can I solve this problem?

Thank you :)

like image 454
volkanb Avatar asked Jun 25 '26 02:06

volkanb


2 Answers

I could find the solution for that issue. Well, that's not really a solution, but the answer is...I am hosting a VPS-Server on STRATO as hostingprovider. So in that case virtualisation is not possible. If I do not an upgrade to dedicated Server, I will never be able to run Kubernetes or Microk8s.

like image 96
volkanb Avatar answered Jun 28 '26 19:06

volkanb


the problem is the service of snap.microk8s.daemon-kubelet. only you should restart of service

sudo systemctl restart snap.microk8s.daemon-kubelet
sudo systemctl status snap.microk8s.daemon-kubelet
like image 26
Nelson Javier Avila Avatar answered Jun 28 '26 18:06

Nelson Javier Avila