Managed Kubernetes
Latest
Frequently Asked Questions
Solutions
How Tos
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Enable Scheduler Container Logs to Track Pod Placement
Copy Markdown
Open in ChatGPT
Open in Claude
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
xxxxxxxxxxsystemctl stop pf9-{hostagent,nodeletd}- Stop Nodelet Phases.
Bash
xxxxxxxxxx/opt/pf9/nodelet/nodeletd phases stop- 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
xxxxxxxxxx- name: "kube-scheduler" image: "k8s.gcr.io/kube-scheduler:__KUBERNETES_VERSION__" command: - "kube-scheduler" - "--config=/srv/kubernetes/configs/kube-scheduler.yaml" - "--leader-elect=true" - "--profiling=false" - "--v=8"- Start Hostagent
Bash
xxxxxxxxxxsystemctl start pf9-hostagent- Verify the change
xxxxxxxxxxps -ef | grep -i kube-schedOnce the above procedure is applied to all master nodes, the scheduler events for pod placement can be observed in the scheduler container logs.
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message