Helm found no kubeconfig
CommonNo ~/.kube/config for the user running Helm, KUBECONFIG pointing at a missing file, or a CI job, cron entry or sudo with a different HOME. Helm falls back to localhost:8080.
Confirm
echo "KUBECONFIG=${KUBECONFIG:-unset} HOME=$HOME"
kubectl config current-contextlocalhost:8080 in the Helm error, and kubectl reporting no current context or the same refusal
Fix
- Point Helm at the right file: export KUBECONFIG=/path/to/config, or pass --kubeconfig.
- In CI, create the kubeconfig in the job before Helm runs, for example aws eks update-kubeconfig --name CLUSTER or your platform's equivalent.
- Under sudo, run Helm as your own user instead, or pass --kubeconfig explicitly.
helm list --kubeconfig ~/.kube/config
If this works, the default location or KUBECONFIG was the problem.