canonical / microk8s

MicroK8s is a small, fast, single-package Kubernetes for datacenters and the edge.
https://microk8s.io
Apache License 2.0
8.43k stars 770 forks source link

install microk8s issue #4562

Open yage11 opened 3 months ago

yage11 commented 3 months ago

Summary

Installation issue. Microk8s is not ready after installation.

sudo snap install microk8s --classic microk8s (1.29/stable) v1.29.4 from Canonical✓ installed

log is attached: inspection-report-20240707_181410.tar.gz

neoaggelos commented 3 months ago

Hi @yage11,

I see the following line repeated a lot in the Kubernetes logs:

Jul 07 17:40:58 ya-1064-5511 microk8s.daemon-kubelite[102624]: E0707 17:40:58.549013  102624 kubelet.go:1542] "Failed to start ContainerManager" err="system validation failed - wrong number of fields (expected 6, got 7)"

Can you share some more details about the system, OS version, host, arch that you are running MicroK8s on?

neoaggelos commented 3 months ago

In particular, you error seems to come from https://github.com/kubernetes/kubernetes/blob/d59676a54531b6e135c0fbbe6b51c530f1150653/pkg/kubelet/cm/container_manager_linux.go#L153-L157

Which probably means that there was some failure where kubelet gets unexpected output when trying to list the available system mounts?

pratakr commented 2 months ago

I have same issue when install ubuntu with proxy setting. if I not set proxy while installing, I can install and set microk8s up and run normally. I don't know where is ubuntu keep proxy setting while install and how to fix it. Screenshot 2567-07-09 at 07 38 28

ps. my setup is ubuntu 24.04 with microk8s 1.30