When i run the kubectl version command , I get the following error message.
kubectl version
Client Version: version.Info{Major:\"1\", Minor:\"9\", GitVersion:\"v
I had the same issue when I tried use kubrnetes installed with Docker. It turned out that it was not enbled by default.
First I enabled kubrnetes in Docker options and then I changed context for docker-for-desktop
kubectl config get-contexts
kubectl config use-context docker-for-desktop
It solved the issue.