run:kubectl get nodes

ERROR:
the server doesn't have a resource type "nodes"

To solve:
sudo cp /etc/kubernetes/admin.conf ~/.kube/config