Why i am getting this error message while init the cluster?

sudo journalctl -u kubelet

did the trick for me. The failure reason was that swap was turned ON.

Dec 31 12:38:20 controlplane kubelet[10977]: E1231 12:38:20.528875 10977 run.go:72] “command failed” err=“failed to run Kubelet: running with swap on is not supported, please disable swap or set --fail-swap-on flag to false”
Dec 31 12:38:20 controlplane systemd[1]: kubelet.service: Main process exited, code=exited, status=1/FAILURE
Dec 31 12:38:20 controlplane systemd[1]: kubelet.service: Failed with result ‘exit-code’.

Command to resolve: sudo /sbin/swapoff -a