-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Kubernetes cluster unreachable with helm 3.0 #1126
Comments
Same issue here on k3s version v1.0.0 (18bd921). |
Try setting the KUBECONFIG environment variable. |
That worked for me, but I only tried on a fresh CentOS/k3s/Helm install. Thanks @grawin |
Same issue. The fix @grawin posted doesn't solve it for me though. EDIT: I also tried the steps in https://github.com/ibrokethecloud/rancher-helm3 but to no avail. |
The fix @grawin posted doesn't worked for me either, i'am using a ubuntu 18.04 system. |
If you add "-v 20" to your helm command line it will show it's connecting to port 8080. This lets helm use the same config kubectl is using I think. |
@rubiktubik looks like helm can't reach the k3s cluster, can you try to use --kubeconfig with helm command or using ~/.kube/config as @sixcorners suggested, please reopen the issue if the problem still persists. |
can confirm this solution works for me as well |
This resolved the error message for me.
|
with k3s i had the same problem, system tells me the file the file had rw for root i change to 744 and it works. please tell me if it is correct, |
If you are using If you wish to preserve specific environment variables when using cat << EOF > /etc/sudoers.d/env
Defaults env_keep += "http_proxy https_proxy no_proxy"
Defaults env_keep += "HTTP_PROXY HTTPS_PROXY NO_PROXY"
Defaults env_keep += "KUBECONFIG"
EOF |
Just use |
@Vesnica thanks that worked for me. |
I'm using helm 3.2.4 on Windows and have the same issue. Setting environment variable KUBECONFIG didn't help either. Without |
what worked for me is to set the |
This |
I tried this command, kubectl config view --raw >~/.kube/config but after running this config file became empty. Can anyone suggest how to recover my config file with all values? |
@poojabolla.. Its gone, you must use >> instead > on appending something in existing file |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I got this issue when using azure kubernetes az aks get-credentials -n myCluster -g myResourceGroup |
For microk8s, the k8s config can be generated by this command: |
thankyou this works for me |
For microk8s you can try with
|
Version:
k3s version v1.0.0 (18bd921)
Describe the bug
I want to use helm version 3 with k3s but i when type
helm install stable/postgresql --generate-name
for example i get:Error: Kubernetes cluster unreachable
To Reproduce
helm repo add stable https://kubernetes-charts.storage.googleapis.com/
helm repo update
helm install stable/postgresql --generate-name
Expected behavior
Installation should work.
Actual behavior
Error: Kubernetes cluster unreachable
Additional context
The text was updated successfully, but these errors were encountered: