Error while running a pod from worker node - couldn’t get current server API group list

Hi Team,

Finished demo lab for setting up kubernetes cluster, could not create a pod from the work node.

Here are the lab details.

Error details:
test01@k8sworker:~$ kubectl run nginx1 --image=nginx
E0722 08:54:02.986472 16689 memcache.go:265] couldn’t get current server API group list: Get “http://localhost:8080/api?timeout=32s”: dial tcp 127.0.0.1:8080: connect: connection refused
The connection to the server localhost:8080 was refused - did you specify the right host or port?

This is the error you typically get when you have not installed the kubeconfig file correctly.

The best thing to do is to get the CKA repo and use the tutorial from there; the video tends to lead people astray.