Can't get Kubectl info from master node after joining a worker node

The final solution was to uninstall kubernetes and the cluster and install it back again. Now I can see both nodes Ready in the worker and master nodes.