Events and logs (CLI)
To help with the troubleshooting of your cluster, review the component logs.
Docker logs
-
To check the status of containers, on either master or worker nodes, run:
docker ps -a
This returns information on any running containers on a node.
-
To check the exit status of any running container, run the following command:
docker logs container-id
Worker logs
-
To view the Kubernetes worker logs, on a worker node, run the following command:
systemctl status kubelet
-
To view more details in the Kubernetes worker logs, on a worker node, run the following command:
journalctl -u kubelet.service
-
To view the Calico logs, on a worker node run the following command:
docker logs -f calico