Kubelet Service is Unstable due to Invalid vm/Overcommit_memory Kernel Flag

Problem

  • kubelet service is unstable showing the below error in the log:
Kubelet log
Copy

Environment

  • Platform9 Edge Cloud v-5.3.0

Cause

  • In one of the master node, the vm.overcommit_memory parameter in the /etc/sysctl.conf file set to "0"
/etc/sysctl.conf
Copy

Resolution

  • Replace the value of above parameter in the /etc/sysctl.conffile with 1
Terminal
Copy
  • Run below command to persist the change made above:
Terminal
Copy
  • After making the change, confirm if the value is reflected for the parameter:
Terminal
Copy
  • Check pf9-kubelet.service status, if it is still stuck in failed state, restart once and confirm if it becomes healthy.
Terminal
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard