question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

kubelet logs and kube-apiserver logs are empty

See original GitHub issue

Hi, 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ktsakalozoscommented, Oct 20, 2020

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 are snap.microk8s.daemon-apiserver and snap.microk8s.daemon-kubelet.

0reactions
ktsakalozoscommented, Oct 22, 2020

Thanks

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found