Recently I started learning Kubernetes, and I am following k8’s course. I have created a aws instance and installed Kubernetes in that instance. When I try to execute the kubectl apply command or other commands like kubectl get pods I am getting below error.
“The connection to the server localhost:8080 was refused - did you specify the right host or port?”
Can you help me to fix this error.
Thanks in advance !!.