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 /var/logs
but I couldn't find a such file. Where could that be?
If you are trying to go directly to the file you can find the kubelet logs in /var/log/syslog directory.
To do this, you'll have to look at kubelet log. Accessing the logs depends on your Node OS. On some OSes it is a file, such as /var/log/kubelet. log, while other OSes use journalctl to access logs.
On OpenShift or other certified Kubernetes platform, look up the web console of your Kubernetes cluster, such as, for example, the OpenShift dashboard. On IBM Cloud Private, look up the IBM Cloud Private web console. In either case, you can also run the logs command.
If you run kubelet using systemd
, then you could use the following method to see kubelet's logs:
# journalctl -u kubelet
If you are trying to go directly to the file you can find the kubelet logs in /var/log/syslog directory. This is for ubuntu 16.04 and above.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With