The connection to the server localhost:8080 was refused, what to do?

Hello everybody

Good morning

Im beggining my studies in Kubernets, follow the tutorial (Install and Set Up kubectl - Kubernetes ) and when type “kubectl cluster-info” I receive the message “To further debug and diagnose cluster problems, use ‘kubectl cluster-info dump’.
The connection to the server localhost:8080 was refused - did you specify the right host or port?”.
When I run kubectl cluster-info dump receive the message "
The connection to the server localhost:8080 was refused - did you specify the right host or port?"
The documentation I found tells to search the file admin.conf at folder /etc/kubernets, but when I do it I didn’t find the folder.
My OS is a CentOS 7 running on VirtualBox.
What can I do?