argoproj-labs / argocd-autopilot

Argo-CD Autopilot
https://argocd-autopilot.readthedocs.io/en/stable/
Apache License 2.0
902 stars 122 forks source link

argocd-autopilot repo bootstrap --recover : The connection to the server localhost:8080 was refused - did you specify the right host or port? #610

Closed UriZafrir closed 3 hours ago

UriZafrir commented 4 hours ago

Hi all I am using k3s, I am trying to recover my cluster from a previous installation, and get the following error.

argocd-autopilot repo bootstrap --recover
INFO cloning repo: https://github.com/UriZafrir/argocd-autopilot-cluster.git
Enumerating objects: 18, done.
Counting objects: 100% (18/18), done.
Compressing objects: 100% (15/15), done.
Total 18 (delta 2), reused 17 (delta 1), pack-reused 0 (from 0)
INFO using revision: "", installation path: ""
INFO using context: "", namespace: "argocd"
INFO applying bootstrap manifests to cluster...
The connection to the server localhost:8080 was refused - did you specify the right host or port?

Am I missing something?

this is all ok..

root@jenkins:/home/rke# kubectl get nodes
NAME      STATUS   ROLES                  AGE   VERSION
jenkins   Ready    control-plane,master   19d   v1.30.5+k3s1
root@jenkins:/home/rke# kubectl get pods -A
NAMESPACE     NAME                                      READY   STATUS      RESTARTS   AGE
kube-system   coredns-7b98449c4-55d4s                   1/1     Running     0          19d
kube-system   helm-install-traefik-crd-n82v9            0/1     Completed   0          19d
kube-system   helm-install-traefik-xhqk7                0/1     Completed   1          19d
kube-system   local-path-provisioner-6795b5f9d8-mnsf8   1/1     Running     0          19d
kube-system   metrics-server-cdcc87586-24krz            1/1     Running     0          19d
kube-system   svclb-traefik-4f25b56b-d22kx              2/2     Running     0          19d
kube-system   traefik-67f6c94c47-54h8l                  1/1     Running     0          19d

Thanks in advance!

UriZafrir commented 3 hours ago

sorry this is a thing in k3s needed export KUBECONFIG="/etc/rancher/k3s/k3s.yaml"