How To Enable Verbose Logging for Kubelet on a Node?

Problem

  • Procedure to increase the log verbosity of pf9-kubelet service to a higher level.

Environment

  • Platform9 Managed Kubernetes - All versions

Procedure

  • Check the current verbosity level of process pf9-kubelet.
Check current verbosity level for pf9-kubelet service
Copy
  • Edit systemd service file for pf9-kubelet i.e. /run/systemd/system/pf9-kubelet.service to increase logging verbosity to --v=8.
Changing pf9-kubelet service verbosity level
Copy
  • Reload the systemd daemon and restart the pf9-kubelet service on the node post above changes.
Perform systemd service restart
Copy
  • Once again check and verify the verbosity level of process pf9-kubelet.
Verify the updated verbosity level for pf9-kube service
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard