Azure-Samples/graphrag-accelerator

[BUG] Kubernetes cluster unreachable: Get "http://localhost:8080/version": dial tcp 127.0.0.1:8080: connect: connection refused

rnpramasamyai opened this issue · 1 comments

When I ran a bash script, as soon as it executed helm upgrade -i graphrag ./helm/graphrag -f, I encountered the following error
Error: Kubernetes cluster unreachable: Get "http://localhost:8080/version": dial tcp 127.0.0.1:8080: connect: connection refused

  • local helmResult=1
  • true
  • set +x

I tried kubectl get pods, I got below result:

E0713 07:45:47.871185 24992 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
E0713 07:45:47.871693 24992 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
E0713 07:45:47.873291 24992 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
E0713 07:45:47.873480 24992 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
E0713 07:45:47.874953 24992 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?

I Installed minikube on my machine and It automatically fixed my issue