Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to see kube-scheduler log?

Tags:

kubernetes

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.

like image 569
Tan Le Avatar asked Dec 05 '17 13:12

Tan Le


People also ask

How do I check my kube log?

This file is managed by Kubernetes and is usually restricted to the last 10MB of logs. You can see the logs of a particular container by running the command kubectl logs <container name> . Here's an example for Nginx logs generated in a container.

How can I check Kubernetes API logs?

Once you've configured your Kubernetes audit policy, use the --audit-policy-file flag to point to the file, and the --audit-log-path to specify the path to the file where the API server should output audit logs. If you don't specify a path, the API server will output logs to stdout .

What is kube-scheduler in Kubernetes?

Synopsis. The Kubernetes scheduler is a control plane process which assigns Pods to Nodes. The scheduler determines which Nodes are valid placements for each Pod in the scheduling queue according to constraints and available resources. The scheduler then ranks each valid Node and binds the Pod to a suitable Node.


1 Answers

Check this on Master /var/log/kube-scheduler.log

see also: https://kubernetes.io/docs/tasks/debug-application-cluster/debug-cluster/

like image 177
Tilo Avatar answered Sep 17 '22 14:09

Tilo