Enable Scheduler Container Logs to Track Pod Placement

Problem

There is a requirement to track down the scheduling of the pods in the PMK cluster. The pod scheduling is not logged in the container logs located at /var/log/containers by default.

Environment

  • Platform9 Managed Kubernetes - All Versions
  • Kube-Scheduler

Procedure

Please ensure to apply the following procedure to one master node at a time.

  • Stop Hostagent and Nodeletd.
Bash
Copy
  • Stop Nodelet Phases.
Bash
Copy
  • Edit _ _/opt/pf9/pf9-kube/conf/masterconfig/base/<OS_NAME>/master.yaml on all the master nodes, setting the verbosity level to "--v=8" for the scheduler container command, e.g.
Bash
Copy
  • Start Hostagent
Bash
Copy
  • Verify the change
Copy

Once the above procedure is applied to all master nodes, the scheduler events for pod placement can be observed in the scheduler container logs.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard