How to see the kube-scheduler log?

2,632 views
Skip to first unread message

tn...@cs.stonybrook.edu

unread,
Dec 5, 2017, 10:25:34 AM12/5/17
to kubernetes-sig-scheduling

I also want to see the logs of kube-scheduler go files. I tried different methods like

  • using kubeclt logs: this show the event logs of kube-scheduler but not all the logs in kube-scheduler.
  • using docker logs [kube-scheduler container id]: it does not have any log.
  • journalctl -u kubelet: only show the log of kubelet.

All of these do not work. Please let me know if you guys found the way to log them out.

David Oppenheimer

unread,
Dec 5, 2017, 11:31:34 AM12/5/17
to tn...@cs.stonybrook.edu, kubernetes-sig-scheduling
If running open-source Kubernetes on GCE, the scheduler logs are in /var/log/kube-scheduler.log on the master


--
You received this message because you are subscribed to the Google Groups "kubernetes-sig-scheduling" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-sig-scheduling+unsub...@googlegroups.com.
To post to this group, send email to kubernetes-sig-scheduling@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-sig-scheduling/3f35b866-cbb6-4d43-894e-8ef805aa0616%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

tn...@cs.stonybrook.edu

unread,
Dec 5, 2017, 11:43:43 AM12/5/17
to kubernetes-sig-scheduling
I compiled and setup Kubernetes on my local machine without using VMs.
I haven't found /var/log/kube-scheduler.log file. How can I enable logging like GCE? 


On Tuesday, December 5, 2017 at 11:31:34 AM UTC-5, David Oppenheimer wrote:
If running open-source Kubernetes on GCE, the scheduler logs are in /var/log/kube-scheduler.log on the master

On Tue, Dec 5, 2017 at 7:25 AM, <tn...@cs.stonybrook.edu> wrote:

I also want to see the logs of kube-scheduler go files. I tried different methods like

  • using kubeclt logs: this show the event logs of kube-scheduler but not all the logs in kube-scheduler.
  • using docker logs [kube-scheduler container id]: it does not have any log.
  • journalctl -u kubelet: only show the log of kubelet.

All of these do not work. Please let me know if you guys found the way to log them out.

--
You received this message because you are subscribed to the Google Groups "kubernetes-sig-scheduling" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-sig-scheduling+unsub...@googlegroups.com.
To post to this group, send email to kubernetes-s...@googlegroups.com.

David Oppenheimer

unread,
Dec 5, 2017, 11:51:44 AM12/5/17
to tn...@cs.stonybrook.edu, kubernetes-sig-scheduling
You shouldn't need to enable logging. Where the logs go likely depends on the OS distro you are using. What OS are you using? Do you see any logs at all in /var/log ?


On Tue, Dec 5, 2017 at 8:43 AM, <tn...@cs.stonybrook.edu> wrote:
I compiled and setup Kubernetes on my local machine without using VMs.
I haven't found /var/log/kube-scheduler.log file. How can I enable logging like GCE? 

On Tuesday, December 5, 2017 at 11:31:34 AM UTC-5, David Oppenheimer wrote:
If running open-source Kubernetes on GCE, the scheduler logs are in /var/log/kube-scheduler.log on the master

On Tue, Dec 5, 2017 at 7:25 AM, <tn...@cs.stonybrook.edu> wrote:

I also want to see the logs of kube-scheduler go files. I tried different methods like

  • using kubeclt logs: this show the event logs of kube-scheduler but not all the logs in kube-scheduler.
  • using docker logs [kube-scheduler container id]: it does not have any log.
  • journalctl -u kubelet: only show the log of kubelet.

All of these do not work. Please let me know if you guys found the way to log them out.

--
You received this message because you are subscribed to the Google Groups "kubernetes-sig-scheduling" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-sig-scheduling+unsubsc...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "kubernetes-sig-scheduling" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-sig-scheduling+unsub...@googlegroups.com.

tn...@cs.stonybrook.edu

unread,
Dec 5, 2017, 11:57:45 AM12/5/17
to kubernetes-sig-scheduling
I am using Ubuntu 16.04 and I could not find any kube log files in /var/log.
My Kubenertes works well as all the kube-system pods are running.


On Tuesday, December 5, 2017 at 11:51:44 AM UTC-5, David Oppenheimer wrote:
You shouldn't need to enable logging. Where the logs go likely depends on the OS distro you are using. What OS are you using? Do you see any logs at all in /var/log ?

On Tue, Dec 5, 2017 at 8:43 AM, <tn...@cs.stonybrook.edu> wrote:
I compiled and setup Kubernetes on my local machine without using VMs.
I haven't found /var/log/kube-scheduler.log file. How can I enable logging like GCE? 

On Tuesday, December 5, 2017 at 11:31:34 AM UTC-5, David Oppenheimer wrote:
If running open-source Kubernetes on GCE, the scheduler logs are in /var/log/kube-scheduler.log on the master

On Tue, Dec 5, 2017 at 7:25 AM, <tn...@cs.stonybrook.edu> wrote:

I also want to see the logs of kube-scheduler go files. I tried different methods like

  • using kubeclt logs: this show the event logs of kube-scheduler but not all the logs in kube-scheduler.
  • using docker logs [kube-scheduler container id]: it does not have any log.
  • journalctl -u kubelet: only show the log of kubelet.

All of these do not work. Please let me know if you guys found the way to log them out.

--
You received this message because you are subscribed to the Google Groups "kubernetes-sig-scheduling" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-sig-scheduling+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "kubernetes-sig-scheduling" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-sig-scheduling+unsub...@googlegroups.com.
To post to this group, send email to kubernetes-s...@googlegroups.com.

tn...@cs.stonybrook.edu

unread,
Dec 5, 2017, 12:48:28 PM12/5/17
to kubernetes-sig-scheduling
I am using Ubuntu 16.04 and I found some kube-scheduler logs in

- kube-scheduler pod's log  : this is same as using "kubeclt logs"
- kube-scheduler container's log: this is same as kube-scheduler pod's log.

As I am modifying the default kube-scheduler in kubernetes/plugin/scheduler, I would like to see the full logs from the kube-scheduler package.
Reply all
Reply to author
Forward
0 new messages