<p>I am trying to download a release of the aws-efs-csi-driver, but I'm getting the following error</p>
<pre><code>Error: Kubernetes cluster unreachable: Get &quot;http://localhost:8080/version&quot;: dial tcp 127.0.0.1:8080: connect: connection refused
</code></pre>
<p>I tried <code>export KUBECONFIG=/etc/rancher/k3s/k3s.yaml</code></p>
<p>I tried <code>kubectl config view --raw &gt;~/.kube/config</code></p>
<p>Both resulted in the same error as when they were not added. I'm new to helm and EKS. Looking for any suggestions, thanks!</p>
<pre><code>helm repo add aws-efs-csi-driver https://kubernetes-sigs.github.io/aws-efs-csi-driver/

helm repo update --kubeconfig ./cluster_config

kubectl config view --raw &gt;~/.kube/config

helm upgrade -i aws-efs-csi-driver aws-efs-csi-driver/aws-efs-csi-driver \
    --namespace kube-system \
    --set image.repository=602401143452.dkr.ecr.$1.amazonaws.com/eks/aws-efs-csi-driver \
    --set controller.serviceAccount.create=false \
    --set controller.serviceAccount.name=efs-csi-controller-sa ```
</code></pre>

cWerning
<p>You can simply use the <code>--kube-config</code> parameter in your command and point it to the existing kubeconfig file that you've created in step 3 at <code>~/.kube/config</code>. Like</p>
<pre><code>helm upgrade -i aws-efs-csi-driver aws-efs-csi-driver/aws-efs-csi-driver \
    --namespace kube-system \
    --set image.repository=602401143452.dkr.ecr.$1.amazonaws.com/eks/aws-efs-csi-driver \
    --set controller.serviceAccount.create=false \
    --set controller.serviceAccount.name=efs-csi-controller-sa
    --kubeconfig ~/.kube/config
</code></pre>
