Issue while setting up Kubeadm on Apple Silicon

I tried setting up Kubeadm cluster in Apple Silicon , Using below github link

When i am trying to run the below command on Worker node , getting below error:
Commands: Kubectl get pods commands
Error:
E0107 22:09:01.940152 5697 memcache.go:265] couldn’t get current server API group list: Get “http://localhost:8080/api?timeout=32s”: dial tcp [::1]:8080: connect: connection refused

On Master Node everything is working fine, Looks like the worked node not able to connect with APIServer on Master node.
Could you please help me on this one.
thanks in advance.

Sounds like you did not create a kubeconfig file on that worker node; the localhost:8080 related error is what you get when the file does not exist.

1 Like

It is generally not preferred practice to execute kubectl commands from worker nodes. In fact many installations don’t bother to install kubectl on them, and I probably should not have when building this lab.

1 Like