Where are the Kubernetes kubelet logs located?

前端 未结 5 1790
抹茶落季
抹茶落季 2020-12-08 09:31

I installed Kubernetes on my Ubuntu machine. For some debugging purposes I need to look at the kubelet log file (if there is any such file).

I have looked in

5条回答
  •  攒了一身酷
    2020-12-08 10:12

    It depends how it was installed. I installed Kubernetes on some Ubuntu machines following the Docker-MultiNode instructions.

    With this install, I find the logs using the logs command like this.

    1. Find your container ID.

      $ docker ps | egrep kubelet
      
    2. Use that container ID to view the logs

      $ docker logs ``
      

提交回复
热议问题