,

Notes Kubernetes k8s - Diag

Voir :

sudo journalctl -f -u kubelet.service
sudo journalctl -u containerd
kubectl cluster-info
 
kubectl get componentstatus
 
kubectl get ds -n kube-system
 
kubectl get deploy -n kube-system
 
kubectl get nodes
 
kubectl get pods --field-selector status.phase!=Running -A
 
kubectl events --types=Warning -A -w
 
kubectl get events --all-namespaces  --sort-by='.metadata.creationTimestamp'

Autre

Once you have found the failing container, you can inspect its logs with:

  1. 'crictl --runtime-endpoint unix:/var/run/containerd/containerd.sock logs CONTAINERID' error execution phase wait-control-plane: could not initialize a Kubernetes cluster To see the stack trace of this error execute with --v=5 or higher </code> Ulimits / Process ID limits and reservations <code bash> watch 'ps -e -w -o “thcount,cgname” --no-headers | awk “{a[\$2] += \$1} END{for (i in a) print a[i], i}” | sort --numeric-sort --reverse | head --lines=8' </code> FIXME