Kubelet - Factory "crio" was unable to handle container [closed] Kubelet - Factory "crio" was unable to handle container [closed] kubernetes kubernetes

Kubelet - Factory "crio" was unable to handle container [closed]


The problem was allowed IPv6 on localhost. It was listening on IPv6 localhost as you can see below.

E0623 15:44:27.039563       1 reflector.go:138] k8s.io/kubernetes/pkg/controlplane/controller/clusterauthenticationtrust/cluster_authentication_trust_controller.go:444: Failed to watch *v1.ConfigMap: failed to list *v1.ConfigMap: Get "https://[::1]:6443/api/v1/namespaces/kube-system/configmaps?limit=500&resourceVersion=0": dial tcp [::1]:6443: i/o timeout

Run this for get logs from kube api.

crictl --runtime-endpoint unix:///var/run/crio/crio.sock ps -a

then

crictl --runtime-endpoint unix:///var/run/crio/crio.sock logs [id container]

Just make sure you have this in /etc/sysctl.conf. Nothing else with IPv6 is allowed.

net.ipv6.conf.all.disable_ipv6 = 1net.ipv6.conf.default.disable_ipv6 = 1
sysctl -p