This is for the Error: Kubernetes cluster unreachable: Get “http://localhost:8080/version?timeout=32s”: dial tcp 127.0.0.1:8080: connect: connection refused
This answer solved the issue for me. If you’re not running on microk8s, omit the prefix
[microk8s] kubectl config view --raw > ~/.kube/config
Run this before doing helm init. It worked for me.