tech:notes_kubernetes_k8s_-_diag
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| tech:notes_kubernetes_k8s_-_diag [2025/09/12 14:15] – Jean-Baptiste | tech:notes_kubernetes_k8s_-_diag [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Notes Kubernetes k8s - Diag | ||
| + | |||
| + | Voir : | ||
| + | * [[Notes VIO VMware Integrated OpenStack k8s]] | ||
| + | * [[Notes Kubernetes k8s - Utilisation]] | ||
| + | |||
| + | ~~~bash | ||
| + | sudo journalctl -f -u kubelet.service | ||
| + | sudo journalctl -u containerd | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | ~~~bash | ||
| + | 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 | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | Autre | ||
| + | * Use kubectl describe pod ... to find the node running your Pod and the container ID (docker:// | ||
| + | * SSH into the node | ||
| + | * Run docker exec -it -u root CONTAINER_ID /bin/bash | ||
| + | |||
| + | |||
| + | |||
| + | Si Metrics-server est installé | ||
| + | ~~~bash | ||
| + | kubectl top node | ||
| + | kubectl top pod --sort-by=memory -A | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ~~~ | ||
| + | - ' | ||
| + | - ' | ||
| + | |||
| + | Additionally, | ||
| + | To troubleshoot, | ||
| + | Here is one example how you may list all running Kubernetes containers by using crictl: | ||
| + | - ' | ||
| + | Once you have found the failing container, you can inspect its logs with: | ||
| + | - ' | ||
| + | error execution phase wait-control-plane: | ||
| + | To see the stack trace of this error execute with --v=5 or higher | ||
| + | ~~~ | ||
| + | |||
| + | Ulimits / Process ID limits and reservations | ||
| + | ~~~bash | ||
| + | watch 'ps -e -w -o " | ||
| + | ~~~ | ||
| + | |||
| + | FIXME | ||
| + | |||
