Troubleshooting kubelet service issues

Unified Compute Platform (UCP) Advisor Software Installation Guide

Version
4.5.x
Audience
anonymous
Part Number
MK-92UCP120-13

Use the following guidelines and suggested steps to help resolve kubelet service issues that occur after upgrading UCP Advisor.

Condition:
The kubelet service become unavailable if the Master Node VM is rebooted after upgrading UCP Advisor to version 4.5.
What it Means:
Running any kubectl command causes the following error:
The connection to the server xx.xx.xx.xx:6443 was refused - did you specify the right host or port?
Corrective Action:
  1. Using SSH, log on to the Master Node VM.
  2. Navigate to the /var/lib/kubelet folder.
  3. In Edit mode, open the config.yaml file.
  4. Update the value for the cgroupDriver parameter to systemd.
  5. Exit Edit mode: press the Esc key.
  6. Save the changes. Enter:
    :wq
  7. Run the following commands to restart the kubelet service:
    systemctl stop kubelet
    systemctl stop docker
    iptables --flush
    iptables -tnat --flush
    systemctl start docker
    systemctl start kubelet