Interview Prep/Helm/Install & Upgrade Failures

`Error: Kubernetes cluster unreachable: Get "http://localhost:8080/version": dial tcp [::1]:8080: connect: connection refused`

BeginnerTroubleshootingInstall & Upgrade Failures
Answer

Likely causes → Helm found no kubeconfig (it falls back to localhost:8080): KUBECONFIG unset in CI, wrong path, or the file is not readable by the user.

Diagnose →

echo $KUBECONFIG; ls -l ~/.kube/config
kubectl config current-context
helm env | grep KUBE

Fix → Export KUBECONFIG, pass --kubeconfig/--kube-context, or generate it (aws eks update-kubeconfig --name prod --region ap-south-1).

Prevent → CI steps that set up kubeconfig explicitly and verify with kubectl version before Helm runs.

All Helm questions Roadmap: Helm

More on Install & Upgrade Failures