If you face the following error : E0606 13:44:07.536927 102303 memcache.go:265] "Unhandled Error" err="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"
For this you all need to do is change the follwoing
grep server ~/.kube/config
if the result is like follows
server: https://127.0.0.1:6443
this is the reason it cause all you need to change it to
server: https://controlnodeIP:6443
also you need to export the following
export KUBECONFIG=/etc/rancher/rke2/rke2.yaml
that's all
No comments:
Post a Comment