journalctl -u [unitfile]
for example, for a service named kube-apiserver, you should do the following:
sudo journalctl -u kube-apiserver
Other kubernetes services checking log files:
sudo journalctl -u kube-controller-manager
sudo journalctl -u kube-scheduler
sudo journalctl -u kubelet
sudo journalctl -u kube-proxy
No comments:
Post a Comment