kubelet logs and kube-apiserver logs are empty
See original GitHub issueHi, We run a microk8s 1.19/stable classic. We had a major incident tonight, all pods restarted @ 22:12 UTC. I am trying to find the root cause of the problem. I expect to find logs of kubelet and api-server through journald. However, logs are empty.
sysadmin@myserver:/var/snap/microk8s/common/var$ sudo journalctl -u kube-apiserver
-- Logs begin at Sat 2020-10-10 15:06:06 UTC, end at Tue 2020-10-20 11:49:56 UTC. --
-- No entries --
sysadmin@myserver:/var/snap/microk8s/common/var$ sudo journalctl -u kubelet
-- Logs begin at Sat 2020-10-10 15:06:06 UTC, end at Tue 2020-10-20 11:56:17 UTC. --
-- No entries --
How can I get logs ? Any clue is welcome Thanks AF
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
kubelet logs and kube-apiserver logs are empty #1660 - GitHub
I am trying to find the root cause of the problem. I expect to find logs of kubelet and api-server through journald. However,...
Read more >Kubernetes Logging: 101 Guide to Logs, Best Practices & More
From various Kubernetes log types to the different methods you can use, learn how to set up your infrastructure for efficient logging and...
Read more >System Logs - Kubernetes
System component logs record events happening in cluster, which can be ... Klog klog is the Kubernetes logging library. klog generates log ......
Read more >var/log/kube-apiserver.log not work for kubernetes1.6
For kubernetes1.6+, try the following options. kube-apiserver. --audit-log-path=/var/log/kubernetes/kube-apiserver.log --logtostderr=false.
Read more >kube api-server can't authenticate to kubelet when using ...
Error from server (Forbidden): Forbidden (user=kubernetes, verb=get, resource=nodes, subresource=proxy) ( pods/log busybox-855686df5d-ln6ww).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @arnoldfranz
microk8s inspect
will print the names of all services in MicroK8s and will gather logs in a tarball. The two services you are looking for aresnap.microk8s.daemon-apiserver
andsnap.microk8s.daemon-kubelet
.Thanks