Muthu Kumar:
Goodmorning Team, why do we get this error?
root@node01 ~ ➜ k get no
E0129 02:04:43.332709 12003 memcache.go:238] 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?
I encountered this just when we had setup the node from scratch during Kubeadm/Kubelet/Kubectl installation but towards the end, by exporting below conf it worked but what about during normal scenario? I was working on troubleshooting worker node issues and came across this error now.
export KUBECONFIG=/etc/kubernetes/admin.conf