Updated on 2024-07-27 GMT+08:00

Key Commands of Nodes

Check Items

Whether some key commands that the node upgrade depends on are working

Solution

  • Scenario 1: Executing the package manager command failed.

    Executing the rpm or dpkg command failed. In this case, log in to the affected node and check whether the following commands are available:

    • rpm:
      rpm -qa
    • dpkg:
      dpkg -l
  • Scenario 2: The systemctl status command fails to be executed.

    If the systemctl status command on a node is unavailable, many check items will be affected. Log in to the node and check the availability of the following commands:

    systemctl status kubelet
  • Scenario 3: Executing the Python command failed.
    Check whether the command can be executed on the node.
    /usr/bin/python --version