Installing ha cluster with kubeadm failed

Hi Kubernetes community,

I’m trying to install a highly available Kubernetes cluster using an Azure load balancer and VMs with OS: Ubuntu 20.04 LTS. Everything went correctly until I ran the command sudo kubeadm init --control-plane-endpoint <ip-lb>:6443 --pod-network-cidr <cidr> --upload-certs. This error shows:

"This error is likely caused by:

  • The kubelet is not running
  • The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled)."

I used a standard internal load balancer and configured it to load balance from port 6443 frontend to port 6443 backend. I disabled UFW and allowed all inbound and outbound traffic. I tested the load balancing with Nginx on port 80 and it works correctly. How can I fix this?
Thank you.